Example #1
0
 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;
 }
Example #2
0
 SecureSocket(Context context, SocketInfo info, IntPtr tlsContext)
     : base(context, info)
 {
     stream          = new SecureSocketStream(this, new IntPtr(info.fd), tlsContext);
     this.tlsContext = tlsContext;
     this.state      = Socket.SocketState.Open;
 }
Example #3
0
        SecureSocketStream(IntPtr tls, SocketInfo info, Manos.IO.Libev.IOLoop ioloop)
            : base(info, ioloop)
        {
            this.tls = tls;

            SetHandle (new IntPtr (info.fd));
        }
Example #4
0
        public SocketStream(SocketInfo info, IOLoop ioloop)
            : base(ioloop)
        {
            state = SocketState.Open;

            port    = info.port;
            address = info.Address;
        }
Example #5
0
        public SocketStream(SocketInfo info, IOLoop ioloop)
            : base(ioloop)
        {
            state = SocketState.Open;

            port = info.port;
            address = info.Address;
        }
Example #6
0
        PlainSocketStream(SocketInfo info, IOLoop ioloop)
            : base(info, ioloop)
        {
            fd = info.fd;

            if (fd > 0) {
                SetHandle (fd);
            }
        }
Example #7
0
        PlainSocketStream(SocketInfo info, IOLoop ioloop) : base(info, ioloop)
        {
            fd = info.fd;

            if (fd > 0)
            {
                SetHandle(fd);
            }
        }
Example #8
0
 private static extern int manos_tls_accept(IntPtr tls, out IntPtr client, out SocketInfo info);
Example #9
0
 protected EventedSocket(IOLoop loop, SocketInfo info)
     : this(loop)
 {
     address = info.Address.ToString ();
     port = info.port;
 }
Example #10
0
 PlainSocket(IOLoop loop, SocketInfo info)
     : base(loop, info)
 {
     stream = new PlainSocketStream (this, new IntPtr (info.fd));
     this.state = Socket.SocketState.Open;
 }
Example #11
0
 PlainSocket(IOLoop loop, SocketInfo info)
     : base(loop, info)
 {
     stream     = new PlainSocketStream(this, new IntPtr(info.fd));
     this.state = Socket.SocketState.Open;
 }
Example #12
0
 private static extern int manos_socket_accept_many(int fd, SocketInfo [] infos, int max, out int err);
Example #13
0
 private static extern int manos_socket_receive_from(int fd, byte [] buffer, int max, int flags, out SocketInfo info, out int err);
Example #14
0
 PlainSocket(Context context, SocketInfo info)
     : base(context, info)
 {
     stream     = new PlainSocketStream(this, new IntPtr(info.fd));
     this.state = Socket.SocketState.Open;
 }
Example #15
0
 protected EventedSocket(IOLoop loop, SocketInfo info)
     : this(loop)
 {
     address = info.Address.ToString();
     port    = info.port;
 }
Example #16
0
        SecureSocketStream(IntPtr tls, SocketInfo info, Manos.IO.Libev.IOLoop ioloop) : base(info, ioloop)
        {
            this.tls = tls;

            SetHandle(new IntPtr(info.fd));
        }
Example #17
0
 protected EventedSocket(Context context, SocketInfo info)
     : this(context)
 {
     address = info.Address.ToString ();
     port = info.port;
 }
Example #18
0
 private static extern int manos_tls_accept(IntPtr tls, out IntPtr client, out SocketInfo info);
Example #19
0
 PlainSocket(Context context, SocketInfo info)
     : base(context, info)
 {
     stream = new PlainSocketStream (this, new IntPtr (info.fd));
     this.state = Socket.SocketState.Open;
 }
Example #20
0
 protected EventedSocket(Context context, SocketInfo info)
     : this(context)
 {
     address = info.Address.ToString();
     port    = info.port;
 }