- getLocalAddress
SockAddr getLocalAddress()
Get the local address of the socket.
- getPeerAddress
SockAddr getPeerAddress()
Get the remote address of a connected socket.
- getPeerName
SockAddr getPeerName()
get the name of the socket's peer (for connected sockets only)
- getSockOpt
void getSockOpt(int level, int optname, T optval)
Call the getsockopt on the socket
- getSockOpt
T[] getSockOpt(int level, int optname, T[] optval)
Call the getsockopt on the socket
- recv
ssize_t recv(void[] buffer, int flags, Timeout timeout)
recv data from a connected socket
- recvFrom
ssize_t recvFrom(void[] buffer, int flags, SockAddr srcAddr, Timeout timeout)
ssize_t recvFrom(void[] buffer, SockAddr srcAddr, Timeout timeout)
recv data from an unconnected socket
- recvObj
void recvObj(T* data, int flags, Timeout timeout)
void recvObj(T* data, Timeout timeout)
recv whole object from a connected socket
- recvmsg
ssize_t recvmsg(msghdr msg, int flags, Timeout timeout)
Implement the recvmsg system call in a reactor friendly way.
- send
ssize_t send(void[] data, int flags, Timeout timeout)
ssize_t send(void[] data, Timeout timeout)
send data over a connected socket
- sendObj
void sendObj(const(T) data, int flags, Timeout timeout)
void sendObj(const(T) data, Timeout timeout)
send an entire object over a connected socket
- sendObjTo
void sendObjTo(const(T) data, const(SockAddr) dst, int flags, Timeout timeout)
void sendObjTo(const(T) data, const(SockAddr) dst, Timeout timeout)
send an entire object over an unconnected socket
- sendTo
ssize_t sendTo(void[] data, int flags, SockAddr destAddr, Timeout timeout)
ssize_t sendTo(void[] data, int flags, SA destAddr, Timeout timeout)
send data over an unconnected socket
- sendmsg
ssize_t sendmsg(msghdr msg, int flags, Timeout timeout)
Implementation of sendmsg.
- setSockOpt
void setSockOpt(int level, int optname, const(void)[] optval, string msg)
void setSockOpt(int level, int optname, const(T) optval, string msg)
Call the setsockopt on the socket
Base class for the different types of sockets