Newsgroups : Borland : borland.public.delphi.internet.winsock : 2005 Jul : TidTCPServer Onconnect remote address?

www.cryer.info
Managed Newsgroup Archive

TidTCPServer Onconnect remote address?

Subject:TidTCPServer Onconnect remote address?
Posted by:"Eric" (er..@example.com)
Date:6 Jul 2005 13:55:45

With the older Delphi sockets, one could find the remote address
and port with:
Socket.Remoteport and Socket.RemoteAddress.

I have looked through the help documents but I do not seem to be
able to find the same info for the Athread:TidPeerthread which is
passed in on my onConnect event of my TidTCPServer object.

I see Athread.connection.socket.LocalName which is supposed to be
the host name of the user's machine but am not sure that is what
I want.  (I want an ip address and port)

Please point me in the right direction!

Replies:

www.cryer.info
Managed Newsgroup Archive