public UvTcpConnection(ChannelFactory channelFactory, UvLoopHandle loop, UvTcpHandle handle) { _input = channelFactory.CreateChannel(); _output = channelFactory.CreateChannel(); ProcessReads(handle); _sendingTask = ProcessWrites(loop, handle); }
public UvTcpConnection(UvTcpListener listener, UvTcpHandle handle) { _listener = listener; _input = listener.ChannelFactory.CreateChannel(); _output = listener.ChannelFactory.CreateChannel(); ProcessReads(handle); _sendingTask = ProcessWrites(handle); }
public UvTcpConnection(UvThread thread, UvTcpHandle handle) { _thread = thread; _handle = handle; _input = _thread.ChannelFactory.CreateChannel(); _output = _thread.ChannelFactory.CreateChannel(); ProcessReads(); _sendingTask = ProcessWrites(); }
internal RioTcpConnection(IntPtr socket, long connectionId, IntPtr requestQueue, RioThread rioThread, RegisteredIO rio) { _socket = socket; _connectionId = connectionId; _rio = rio; _rioThread = rioThread; _input = rioThread.ChannelFactory.CreateChannel(); _output = rioThread.ChannelFactory.CreateChannel(); _requestQueue = requestQueue; rioThread.Connections.TryAdd(connectionId, this); ProcessReceives(); _sendTask = ProcessSends(); }