Pdelvo.Minecraft.Proxy.Library.Connection.ProxyConnection.ProxyConnection C# (CSharp) Method

ProxyConnection() public method

Creates a new instance of the ProxyConnection class with the remote socket of the client and the ProxyServer this connection should belong to.
public ProxyConnection ( Socket networkSocket, ProxyServer server ) : System
networkSocket Socket The network socket of the network client
server ProxyServer The proxy server this connection belongs to
return System
        public ProxyConnection(Socket networkSocket, ProxyServer server)
        {
            _logger = LogManager.GetLogger("Proxy Connection");
            _networkSocket = networkSocket;
            _server = server;
            _random = new Random ();
        }