Lines Matching refs:socket_t
54 enum socket_t : SOCKET { INVALID_SOCKET } in version() enum
89 enum socket_t : int32_t { _init = -1 } in version()
2173 static assert(fd_set_type.sizeof == socket_t.sizeof);
2200 inout(socket_t)[] fds() @trusted inout @property pure nothrow @nogc
2202 return cast(inout(socket_t)[])set[FD_SET_OFFSET .. FD_SET_OFFSET+count];
2287 void add(socket_t s) @trusted pure nothrow
2325 void remove(socket_t s) pure nothrow
2355 int isSet(socket_t s) const pure nothrow @nogc
2416 auto fds = cast(socket_t[])
2417 [cast(socket_t) 1, 2, 0, 1024, 17, 42, 1234, 77, 77+32, 77+64];
2425 foreach (fd; fds[0]..cast(socket_t)(fds[$-1]+1))
2537 set.add(cast(socket_t) n);
2621 socket_t sock;
2660 void setSock(socket_t handle)
2662 assert(handle != socket_t.init);
2690 auto handle = cast(socket_t) socket(af, type, protocol);
2691 if (handle == socket_t.init)
2727 this(socket_t sock, AddressFamily af) pure nothrow @nogc
2729 assert(sock != socket_t.init);
2742 @property socket_t handle() const pure nothrow @nogc
2889 auto newsock = cast(socket_t).accept(sock, null, null);
2890 if (socket_t.init == newsock)
2897 assert(newSocket.sock == socket_t.init);
2920 private static void _close(socket_t sock) @system nothrow @nogc
2942 sock = socket_t.init;
3594 @property pure nothrow @nogc @safe socket_t handle() const
3764 s.setSock(cast(socket_t) socks[id]);