Пример #1
0
        public SocketStream(SocketInfo info, IOLoop ioloop)
            : base(ioloop)
        {
            fd = info.fd;

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

            port = info.port;
        }
Пример #2
0
        public SocketStream(SocketInfo info, IOLoop ioloop) : base(ioloop)
        {
            fd = info.fd;

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

            port = info.port;
        }
Пример #3
0
 private static extern int manos_socket_receive_from(int fd, byte [] buffer, int max, int flags, out SocketInfo info, out int err);
Пример #4
0
 private static extern int manos_socket_accept_many(int fd, SocketInfo [] infos, int max, out int err);
Пример #5
0
 public SocketStream(SocketInfo info) : this(info, IOLoop.Instance)
 {
 }
Пример #6
0
 public SocketStream(SocketInfo info)
     : this(info, IOLoop.Instance)
 {
 }