public ClientHandler(WunderLayer packetDecoder, TcpClient c)
        {
            _client = c;

            _processor = new StreamProcessor(packetDecoder, _client.Client.RemoteEndPoint, _client.GetStream(), 1024);
            _processor.PacketReceived += PacketReceived;
            _processor.BeginReadData();
        }
Exemple #2
0
 public WunderTCPServer(string xmlpath, IPAddress iPAddress, int port)
 {
     _tcpServer = new TcpListener(new IPEndPoint(iPAddress, port));
     _decoder   = new WunderLayer(xmlpath);
     Console.WriteLine(_decoder.ToString());
 }
 public WunderTCPClient(string xmlPath, string ipAddress, int port)
 {
     _ipAddress = ipAddress;
     _port      = port;
     _decoder   = new WunderLayer(xmlPath);
 }