problems with sockets on panther

Björnke von Gierke bvg at mac.com
Mon Jul 19 22:25:08 EDT 2004


I can't get my socket code to work.... maybe someone of you can give me 
a hint why I do not see anything in the opensockets?

"server" button:
on mouseUp
   accept connections on port 80 with message "webConnect"
   put "Accepting" & return before field "log"
end mouseUp

on webConnect RemoteIP
     put "socket:" && the opensockets & return before field "log"
   put RemoteIP & return before field "log"
   read from socket remoteIP until ":"
   put it & return before field "log"
end WebConnect



"client" button :

on mouseUp
   open socket to "192.168.1.2:80"
   put theSocket & return & mess
   write mess to Socket theSocket
end mouseUp



More information about the use-livecode mailing list