FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Socket
Posts: 603
Joined: Sun May 04, 2008 08:44 PM

Socket

Posted: Fri Aug 22, 2008 03: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

Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM

Socket

Posted: Fri Aug 22, 2008 03:13 PM

Have you tried oSocket:nPort?

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 603
Joined: Sun May 04, 2008 08:44 PM

nice

Posted: Fri Aug 22, 2008 03: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

Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM

Socket

Posted: Fri Aug 22, 2008 08:07 PM

Try:

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

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10

Continue the discussion