My test server is efnet.demon.co.uk i am connecting on port 6666. A typical conversation using blocking read's would be like this:
connection the server sends me three lines with the end of line delimiter crlf: NOTICE AUTH :*** Looking up your hostname... NOTICE AUTH :*** Checking Ident NOTICE AUTH :*** Found your hostname I send my authentication strings: PASS NICK Bjoernke USER guest 0 bar :Bjoernke von Gierke And so on
but when I do this whit a nonblocking read, i get this:
connection
the server sends me three lines with the end of line delimiter crlf:
efnet.demon.co.uk:6666
efnet.demon.co.uk:6666
efnet.demon.co.uk:6666
Now I would send my authentication, but its kinda senseless, as I am unable to get any useful data.
the code I use:
--blocking
on mouseUp
read from socket field "server" until crlf
put it & return after field "log"
end mouseUp--nonblocking on mouseUp read from socket field "server" until crlf with message "finished" end mouseUp
on finished theMessage put theMessage & return after field "log" end finished
_______________________________________________ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
