Simple Socket Saga

Len Morgan len-morgan at crcom.net
Fri Jul 31 11:31:49 EDT 2009


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



More information about the use-livecode mailing list