Page 1 of 1

Socket

PostPosted: Fri Aug 22, 2008 3:04 pm
by lailton.webmaster
hey there

well i wanna know how return to a var the number port conected with the socket


oSocket = TSocket():New( 2000 )

how are conected now i wanna know port that to be conect

someone know ?? thanks

PostPosted: Fri Aug 22, 2008 3:13 pm
by James Bott
Have you tried oSocket:nPort?

nice

PostPosted: Fri Aug 22, 2008 3:17 pm
by lailton.webmaster
thanks very much

with it return ah port 2000

more a thing

how i know while the client is conected with socket servidor ?

osockt:onconect ?

thanks

PostPosted: Fri Aug 22, 2008 8:07 pm
by James Bott
Try:

oSocket:bConnected := {|| msgInfo("Connected") }