Lines Matching refs:socket_t
68 enum socket_t : SOCKET { INVALID_SOCKET } in version() enum
103 enum socket_t : int32_t { init = -1 } in version()
2151 static assert(fd_set_type.sizeof == socket_t.sizeof);
2178 inout(socket_t)[] fds() @trusted inout @property pure nothrow @nogc
2180 return cast(inout(socket_t)[])set[FD_SET_OFFSET .. FD_SET_OFFSET+count];
2265 void add(socket_t s) @trusted pure nothrow
2303 void remove(socket_t s) pure nothrow
2333 int isSet(socket_t s) const pure nothrow @nogc
2394 auto fds = cast(socket_t[])
2395 [cast(socket_t) 1, 2, 0, 1024, 17, 42, 1234, 77, 77+32, 77+64];
2403 foreach (fd; fds[0]..cast(socket_t)(fds[$-1]+1))
2496 set.add(cast(socket_t) n);
2577 socket_t sock;
2616 void setSock(socket_t handle)
2618 assert(handle != socket_t.init);
2646 auto handle = cast(socket_t) socket(af, type, protocol);
2647 if (handle == socket_t.init)
2683 this(socket_t sock, AddressFamily af) pure nothrow @nogc
2685 assert(sock != socket_t.init);
2698 @property socket_t handle() const pure nothrow @nogc
2838 auto newsock = cast(socket_t).accept(sock, null, null);
2839 if (socket_t.init == newsock)
2846 assert(newSocket.sock == socket_t.init);
2869 private static void _close(socket_t sock) @system nothrow @nogc
2893 sock = socket_t.init;
3532 const pure nothrow @nogc @property @safe socket_t handle() { assert(0); }
3591 s.setSock(cast(socket_t) socks[id]);