SecureSocket(IOLoop loop, SocketInfo info, IntPtr tlsContext) : base(loop, info) { stream = new SecureSocketStream (this, new IntPtr (info.fd), tlsContext); this.tlsContext = tlsContext; this.state = Socket.SocketState.Open; }
public EventedSocket(IOLoop loop) { if (loop == null) throw new ArgumentNullException ("loop"); this.Loop = loop; }
SecureSocket(IOLoop loop, SocketInfo info, IntPtr tlsContext) : base(loop, info) { stream = new SecureSocketStream(this, new IntPtr(info.fd), tlsContext); this.tlsContext = tlsContext; this.state = Socket.SocketState.Open; }
public SocketStream(SocketInfo info, IOLoop ioloop) : base(ioloop) { state = SocketState.Open; port = info.port; address = info.Address; }
PlainSocketStream(SocketInfo info, IOLoop ioloop) : base(info, ioloop) { fd = info.fd; if (fd > 0) { SetHandle(fd); } }
public EventedSocket(IOLoop loop) { if (loop == null) { throw new ArgumentNullException("loop"); } this.Loop = loop; }
PlainSocketStream(SocketInfo info, IOLoop ioloop) : base(info, ioloop) { fd = info.fd; if (fd > 0) { SetHandle (fd); } }
public SecureSocket(IOLoop loop, string certFile, string keyFile) : base(loop) { int err = manos_tls_init (out tlsContext, certFile, keyFile); if (err != 0) { throw new InvalidOperationException ( string.Format ("Error {0}: failed to initialize TLS socket with keypair ({1}, {2})", err, certFile, keyFile)); } }
public SecureSocketStream(string certFile, string keyFile, IOLoop ioloop) : base(ioloop) { int err = manos_tls_init(out tls, certFile, keyFile); if (err != 0) { throw new InvalidOperationException( string.Format("Error {0}: failed to initialize TLS socket with keypair ({1}, {2})", err, certFile, keyFile)); } }
protected EventedStream(IOLoop loop, IntPtr handle) { if (loop == null) throw new ArgumentNullException ("loop"); if (handle == IntPtr.Zero) throw new ArgumentException ("handle"); this.Loop = loop; this.Handle = handle; this.readWatcher = new IOWatcher (Handle, EventTypes.Read, Loop.EVLoop, HandleReadReady); this.writeWatcher = new IOWatcher (Handle, EventTypes.Write, Loop.EVLoop, HandleWriteReady); }
protected EventedStream(IOLoop loop, IntPtr handle) { if (loop == null) { throw new ArgumentNullException("loop"); } if (handle == IntPtr.Zero) { throw new ArgumentException("handle"); } this.Loop = loop; this.Handle = handle; this.readWatcher = new IOWatcher(Handle, EventTypes.Read, Loop.EVLoop, HandleReadReady); this.writeWatcher = new IOWatcher(Handle, EventTypes.Write, Loop.EVLoop, HandleWriteReady); }
public PlainSocket(IOLoop loop) : base(loop) { }
public PlainSocketStream(IOLoop ioloop) : base(ioloop) { }
protected EventedSocket(IOLoop loop, SocketInfo info) : this(loop) { address = info.Address.ToString(); port = info.port; }
protected EventedSocket(IOLoop loop, SocketInfo info) : this(loop) { address = info.Address.ToString (); port = info.port; }
PlainSocket(IOLoop loop, SocketInfo info) : base(loop, info) { stream = new PlainSocketStream (this, new IntPtr (info.fd)); this.state = Socket.SocketState.Open; }
PlainSocket(IOLoop loop, SocketInfo info) : base(loop, info) { stream = new PlainSocketStream(this, new IntPtr(info.fd)); this.state = Socket.SocketState.Open; }