public SocketStream(SocketInfo info, IOLoop ioloop) : base(ioloop) { fd = info.fd; if (fd > 0) { SetHandle (fd); state = SocketState.Open; } port = info.port; }
public SocketStream(SocketInfo info, IOLoop ioloop) : base(ioloop) { fd = info.fd; if (fd > 0) { SetHandle(fd); state = SocketState.Open; } port = info.port; }
private static extern int manos_socket_receive_from(int fd, byte [] buffer, int max, int flags, out SocketInfo info, out int err);
private static extern int manos_socket_accept_many(int fd, SocketInfo [] infos, int max, out int err);
public SocketStream(SocketInfo info) : this(info, IOLoop.Instance) { }