Example #1
0
        public LoginPlayer(CSockState clientSocket, string authIp, int authPort)
        {
            _clientSocket = clientSocket.Socket;

            authServerBuffer = new byte[1024];
            //Establish connection to actual auth server
            _serverSocket = new WinsockClient(System.Net.Sockets.AddressFamily.InterNetwork, System.Net.Sockets.SocketType.Stream, System.Net.Sockets.ProtocolType.Tcp);
            _serverSocket.Enable(authIp, (ushort)authPort, authServerBuffer);
            _serverSocket.OnConnect    += _serverSocket_OnConnect;
            _serverSocket.OnDisconnect += _serverSocket_OnDisconnect;
            _serverSocket.OnReceive    += _serverSocket_OnReceive;
        }
Example #2
0
 private static void AuthSocket_NewConquerClientConnection(CSockState obj)
 {
     Log.LogToConsole("Client connected to Proxy", LogSource.Auth);
 }
Example #3
0
 private static void AuthSocket_DataReceived(byte[] buffer, CSockState cSockState, byte[] question)
 {
     Log.LogToConsole($"Received data from client : {System.Text.Encoding.ASCII.GetString(buffer)}", LogSource.Auth);
 }
Example #4
0
 private static void AuthSocket_ConnectionTerminated(CSockState obj)
 {
 }