Esempio n. 1
0
 public TcpClient(long handle, RCSymbolScalar symbol, Tcp.Protocol protocol, int timeout)
 {
     _protocol     = protocol;
     _handle       = handle;
     _host         = (string)symbol.Part(1);
     _port         = (long)symbol.Part(2);
     _inbox        = new TcpReceiveBox();
     _outbox       = new TcpOutBox();
     _buffer       = new TcpMessageBuffer();
     _timeout      = timeout;
     _timeoutTimer = null;
 }
Esempio n. 2
0
 public TcpServerSession(RCAsyncState state,
                         TcpServer server,
                         Socket socket,
                         TcpListenBox inbox,
                         long handle)
 {
     _listenState = state;
     _server      = server;
     _socket      = socket;
     _handle      = handle;
     _buffer      = new TcpMessageBuffer();
     // One outbox per *session*
     _outbox = new TcpOutBox();
     // One inbox per *server*
     _inbox = inbox;
 }