public const socklen_t in_addrlen; Constructor.
Flags supported by accept4().
true for IPv6, false for IPv4.
Creates an IP socket endpoint for communication and sets this.fd to the corresponding file descriptor.
Calls socket() to create a TCP/IP socket, setting this.fd to the file descriptor.
Flags supported by accept4().
File descriptor. Set by socket()/accept() and reset by close() and clear(). Should be modified otherwise only in special situations.
If true, the destructor will call close(). Enabled by socket()/accept() on success, disabled by close() and socket()/accept() on failure. Should be modified otherwise only in special situations.
If true, send() and therefore write() are requested not to send SIGPIPE on errors when this socket is stream oriented (e.g. TCP) and the other end breaks the connection.
Address struct (sin_addr/sin6_addr) length.
Destructor. Calls close() if indicated by close_in_destructor.
Required by ISelectable.
Calls getsockopt(SOL_SOCKET, SO_ERROR) to obtain the current error code for this socket.
Calls getsockopt(SOL_SOCKET, SO_ERROR) to obtain the current error code for the socket referred to by fd.
Creates a socket endpoint for communication and sets this.fd to the corresponding file descriptor.
Assigns a local address to this socket. This socket needs to have been created by socket().
Accepts a connection from a listening socket and sets this.fd to the accepted socket file descriptor.
Accepts a connection from a listening socket and sets this.fd to the accepted socket file descriptor.
Accepts a connection from a listening socket and sets this.fd to the accepted socket file descriptor.
Connects this socket the specified address and port.
listen() marks this socket as a passive socket, that is, as a socket that will be used to accept incoming connection requests using accept().
The shutdown() call causes all or part of a full-duplex connection on the socket to be shut down.
Obtains the value of a socket option, writing the value data to dst.
Calls getsockopt() to obtain the value of a socket option.
Sets the value of a socket option, using the value data in src. The actual value data type and length depends on the particular option.
Calls setsockopt() to sets the value of a socket option to val.
Calls send() to send as many src bytes as possible.
Sends as many src bytes as possible to the remote.
Receives dst.length bytes from the remote but at most as possible with one attempt.
Obtains the local socket address.
Obtains the remote socket address.
Closes the socket and resets the file descriptor, address and port.
Resets the file descriptor, address and port. Called from close(), should be called otherwise only in special situations.
Formats information about the socket into the provided buffer.
IP socket base class