ISocket.close

Closes the socket and resets the file descriptor, address and port.

class ISocket
int
close
()

Return Value

Type: int

0 success or -1 on failure. On failure errno is set appropriately.

Errors: EBADF fd isn't a valid open file descriptor.

EINTR The close() call was interrupted by a signal; see signal(7).

EIO An I/O error occurred.

Meta