I use TSocket() as a server to :Listen() from a Client (another party).
The question : How can I know the client connect to server (if I am server)?
I try as below code but :bConnect is not response when client connect.
The question : How can I know the client connect to server (if I am server)?
I try as below code but :bConnect is not response when client connect.
oSocket:bAccept = { | oSocket | ;
oClient := TSocket():Accept( oSocket:nSocket ),;
oClient:Cargo := ST_COMMAND,;
oClient:bRead := { | oSocket | OnRead( oSocket ) },;
oClient:bClose := { | oSocket | OnClose( oSocket ) }, ;
oClient:bConnect := { | oSocket | OnConnect( oSocket ) } }Regards,
Dutch
FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio
FWPPC 10.02 / Harbour for PPC (FTDN)
ADS V.9 / MySql / MariaDB
R&R 12 Infinity / Crystal Report XI R2
(Thailand)
Dutch
FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio
FWPPC 10.02 / Harbour for PPC (FTDN)
ADS V.9 / MySql / MariaDB
R&R 12 Infinity / Crystal Report XI R2
(Thailand)