SystemExt/Network/TCPServerClient.cs
/// <summary>
/// Assigns a socket to the client.
/// </summary>
/// <param name="server">
/// The <see cref="TCPServer{TClient}"/> which created this instance.
/// </param>
/// <param name="client">
/// The underlying .NET socket.
/// </param>
Assigns a socket to the client.
Assigns a socket to the client .
internal void SetSocket(TCPServer<TClient> server, Socket client)
        {
            if (this.Server != null || this.Stream != null)
                return;
            this.Server = server;
            this.SetSocket(client);
        }
internal void SetSocket ( TCPServer < TClient > server , Socket client ) { if ( this . Server != null || this . Stream != null ) return ; this . Server = server ; this . SetSocket ( client ) ; }
Assigns a socket to the client.
Assigns a socket to the client .
// Don't overwrite an initialized socket.
server
TCPServer<TClient>
The  which created this instance.
The which created this instance .
client
Socket
The underlying .NET socket.
The underlying . NET socket .