SystemExt/Network/TCPClientBase.cs
/// <summary>
/// Assigns a socket to the client.
/// </summary>
/// <param name="client">
/// The underlying .NET socket.
/// </param>
Assigns a socket to the client.
Assigns a socket to the client .
protected void SetSocket(Socket client)
        {
            this.LocalEndPoint = client.LocalEndPoint as IPEndPoint;
            this.RemoteEndPoint = client.RemoteEndPoint as IPEndPoint;
            this.Stream = new NetworkStream(client, true);
            this.OnOpen();
            this.Stream.BeginRead(this.ReadBuffer, 0, this.ReadBuffer.Length, this.EndRead, null);
        }
protected void SetSocket ( Socket client ) { this . LocalEndPoint = client . LocalEndPoint as IPEndPoint ; this . RemoteEndPoint = client . RemoteEndPoint as IPEndPoint ; this . Stream = new NetworkStream ( client , true ) ; this . OnOpen ( ) ; this . Stream . BeginRead ( this . ReadBuffer , 0 , this . ReadBuffer . Length , this . EndRead , null ) ; }
Assigns a socket to the client.
Assigns a socket to the client .
// Fire the initialization event and start reading.
client
Socket
The underlying .NET socket.
The underlying . NET socket .