I know about the Socket object's RemoteEndPoint, but I don't know how to get
a Socket object out of TcpListener or Client (I am using AcceptTcpClient in
TcpListener, not the AcceptSocket).
Regards,
Jeffrey Drake
Regards,
Saurabh Nandu
http://www.MasterCSharp.com
Master C#, the easy way...
"Jeffrey Drake" <jp...@home.com> wrote in message
news:u9$OeMDUBHA.1636@tkmsftngp05...
"Saurabh Nandu" <sau...@UltraApps.com> wrote in message
news:eaJ9M1TUBHA.1712@tkmsftngp03...
That won't work as "Client" is a protected member. You could either
subclass the TCPClient class and expose the RemoteEndPoint yourself, or
you could use reflection to access the Client member.
--
Patrick Steele
Microsoft .NET MVP
Regards,
Saurabh Nandu
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!