WindowsXP-Vista, C# :: Difference between TcpListener.Server.Send and TcpClient.Send

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • secutos
    New Member
    • Aug 2008
    • 15

    WindowsXP-Vista, C# :: Difference between TcpListener.Server.Send and TcpClient.Send

    When a TcpListener accepts a connection, it returns a TcpClient, which allows you to recieve data. But what about TcpListener.Ser ver.Receive? Does that also allow to receive data in the same way? Or does the TcpClient returned only recieve data from that current connection while TcpListener.Ser ver.Receive receives data from all connections? I do have mutliple connections in my TcpListener.
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    TcpListener.Ser ver returns a reference to the unerlying Socket object. So TcpListener.Ser ver.Receive() is just the Receive function on a Socket object.
    TcpClient.Clien t is the same way.

    Comment

    Working...