Ejemplo n.º 1
0
 public CarProtoServer(ICarService carService)
 {
     _carService = carService;
     _tcpServer = new TcpServer(255);
     var ipEndPoint = new IPEndPoint(IPAddress.Any, 4999);
     _tcpServer.Start(ipEndPoint);
     _tcpServer.ClientConnected += ClientConnected;
     _tcpServer.ClientDisonnected += ClientDisconnected;
 }
Ejemplo n.º 2
0
 public AsyncCarClientToken(SocketAsyncEventArgs socketAsyncEventArgs, TcpServer tcpServer)
 {
     _socketAsyncEventArgs = socketAsyncEventArgs;
     _tcpServer = tcpServer;
 }