Esempio n. 1
0
        public SocketStream(SocketInfo info, IOLoop ioloop)
            : base(ioloop)
        {
            fd = info.fd;

            if (fd > 0) {
                SetHandle (fd);
                state = SocketState.Open;
            }

            port = info.port;
        }
Esempio n. 2
0
        public SocketStream(SocketInfo info, IOLoop ioloop) : base(ioloop)
        {
            fd = info.fd;

            if (fd > 0)
            {
                SetHandle(fd);
                state = SocketState.Open;
            }

            port = info.port;
        }
Esempio n. 3
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. 4
0
 private static extern int manos_socket_accept_many(int fd, SocketInfo [] infos, int max, out int err);
Esempio n. 5
0
 public SocketStream(SocketInfo info) : this(info, IOLoop.Instance)
 {
 }
Esempio n. 6
0
 public SocketStream(SocketInfo info)
     : this(info, IOLoop.Instance)
 {
 }