Simple Socket Saga
len-morgan at crcom.net
len-morgan at crcom.net
Fri Jul 31 12:42:42 EDT 2009
It's a typo on my part. The message name is the same in both places in my
"real" code.
If the names are corrected, shouldn't I get the text "Connect to
xxx.xxx.xxx.xxx" (the IP that's trying to talk to me) in my field? I just
don't see anything wrong. Other than the fact that it doesn't work. :-(
I tried to put a breakpoint in the first line of "connected" but that
never gets tripped either.
len
> --- On Fri, 7/31/09, Len Morgan <len-morgan at crcom.net> wrote:
>
>> From: Len Morgan <len-morgan at crcom.net>
>> Subject: Simple Socket Saga
>> To: use-revolution at lists.runrev.com
>> Date: Friday, July 31, 2009, 8:31 AM
>> I'm trying to create a listening
>> socket and something is not quite right. I've created
>> a button:
>>
>> on mouseUp
>> accept connections on port 502 with message "connected"
>> end mouseUp
>>
>> on connect s
>> put "Connect to" && s after fld "test"
>> read from socket s for 1 line
>> put lne 1 of it after fld "test"
>> end connect
>>
>> The problem is I'm never getting the "connect"
>> message. Have I missed something? I have
>> firewall turned off so it's not getting blocked (I'm pretty
>> sure).
>>
>> len
>>
>
> Is it an email-reproduction typo, or is the message name "connected" but
> the handler name "connect" ? Those ought to be the same or the callback
> message will evaporate.
>
> Jan Schenkel
> =====
> Quartam Reports & PDF Library for Revolution
> <http://www.quartam.com>
>
> =====
> "As we grow older, we grow both wiser and more foolish at the same time."
> (La Rochefoucauld)
>
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
More information about the use-livecode
mailing list