Socket

Socket

Postby lailton.webmaster » Fri Aug 22, 2008 3:04 pm

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
lailton.webmaster
 
Posts: 603
Joined: Sun May 04, 2008 8:44 pm

Postby James Bott » Fri Aug 22, 2008 3:13 pm

Have you tried oSocket:nPort?
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

nice

Postby lailton.webmaster » Fri Aug 22, 2008 3:17 pm

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
lailton.webmaster
 
Posts: 603
Joined: Sun May 04, 2008 8:44 pm

Postby James Bott » Fri Aug 22, 2008 8:07 pm

Try:

oSocket:bConnected := {|| msgInfo("Connected") }
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 32 guests