problems with sockets on panther

Andre Garzia soapdog at mac.com
Mon Jul 19 22:35:51 EDT 2004



I think you can't listen and open connections at the same time... do 
like this, change port, then launch server then connect from your 
favorite browser...

try that...

cheers
andre


On Jul 19, 2004, at 11:25 PM, Bjšrnke von Gierke wrote:

> 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
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
>
-- 
Andre Alves Garzia ð 2004
Soap Dog Studios - BRAZIL
http://studio.soapdog.org



More information about the use-livecode mailing list