Terraria.Net.Sockets.TcpSocket.TcpSocket C# (CSharp) Method

TcpSocket() public method

public TcpSocket ( TcpClient tcpClient ) : System
tcpClient System.Net.Sockets.TcpClient
return System
        public TcpSocket(TcpClient tcpClient)
        {
            this._connection = tcpClient;
            this._connection.NoDelay = true;
            IPEndPoint ipEndPoint = (IPEndPoint)tcpClient.Client.RemoteEndPoint;
            this._remoteAddress = (RemoteAddress)new TcpAddress(ipEndPoint.Address, ipEndPoint.Port);
        }

Same methods

TcpSocket::TcpSocket ( ) : System