Esempio n. 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;
 }
Esempio n. 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;
 }
Esempio n. 3
0
        SecureSocketStream(IntPtr tls, SocketInfo info, Manos.IO.Libev.IOLoop ioloop)
            : base(info, ioloop)
        {
            this.tls = tls;

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

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

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

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

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

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