Lines Matching refs:socket
27 /*! \file isc/socket.h
31 * When I/O completes, a completion event for the socket is posted to the
37 * Clients of this module must not be holding a socket's task's lock when
38 * making a call that affects that socket. Failure to follow this rule
82 * In isc_socket_bind() set socket option SO_REUSEADDR prior to calling
229 * How a socket should be shutdown in isc_socket_shutdown() calls.
279 * Create a new file descriptor watch socket managed by 'manager'.
299 * '*socketp' is attached to the newly created fdwatch socket
315 * Create a new 'type' socket managed by 'manager'.
334 * '*socketp' is attached to the newly created socket
351 * socket.
355 * \li "socket" is a valid socket
361 * socket.
379 * Shutdown 'socket' according to 'how'.
383 * \li 'socket' is a valid socket.
403 * Attach *socketp to socket.
407 * \li 'socket' is a valid socket.
409 * \li 'socketp' points to a NULL socket.
413 * \li *socketp is attached to socket.
419 * Detach *socketp from its socket.
423 * \li 'socketp' points to a valid socket.
425 * \li If '*socketp' is the last reference to the socket,
434 * \li If '*socketp' is the last reference to the socket,
437 * The socket will be shutdown (both reading and writing)
440 * All resources used by the socket have been freed
446 * Open a new socket file descriptor of the given socket structure. It simply
447 * opens a new descriptor; all of the other parameters including the socket
448 * type are inherited from the existing socket. This function is provided to
451 * issue, it should be safer to detach the unused socket and re-create a new
460 * \li there must be no other reference to this socket.
462 * \li 'socket' is a valid and previously closed by isc_socket_close()
474 * Close a socket file descriptor of the given socket structure. This function
475 * is provided as an alternative to destroying an unused socket when overhead
486 * \li The socket must have a valid descriptor.
488 * \li There must be no other reference to this socket.
502 * Bind 'socket' to '*addressp'.
506 * \li 'socket' is a valid socket
530 * Set listen mode on the socket. After this call, the only function that
543 * \li 'socket' is a valid, bound TCP socket or a valid, bound UNIX socket.
557 * socket. The new socket structure is sent inside the isc_socket_newconnev_t
561 * \li 'socket' is a valid TCP socket that isc_socket_listen() was called
579 * Connect 'socket' to peer with address *saddr. When the connection
585 * \li 'socket' is a valid TCP socket
611 * Get the name of the peer connected to 'socket'.
615 * \li 'socket' is a valid TCP socket.
627 * Get the name of 'socket'.
631 * \li 'socket' is a valid socket.
656 * Receive from 'socket', storing the results in region.
684 * 'event' is not NULL, and the non-socket specific fields are
697 *\li 'socket' is a valid, bound socket.
755 * Send the contents of 'region' to the socket's peer.
775 * 'event' is not NULL, and the non-socket specific fields are
796 *\li 'socket' is a valid, bound socket.
835 * Create a socket manager. If "maxsocks" is non-zero, it specifies the
881 * Set a general socket statistics counter set 'stats' for 'manager'.
884 * \li 'manager' is valid, hasn't opened any socket, and doesn't have
887 *\li stats is a valid statistics supporting socket statistics counters
894 * Destroy a socket manager.
899 * so if the caller holds any socket references using the manager, it
919 * Returns the socket type for "sock."
923 *\li "sock" is a valid socket.
933 * If the socket is an IPv6 socket set/clear the IPV6_IPV6ONLY socket
937 *\li 'sock' is a valid socket.
946 * then just unlink the socket. If 'active' is false try to determine
947 * if there is a listener of the socket or not. If no listener is found
948 * then unlink socket.
950 * Prior to unlinking the path is tested to see if it a socket.
954 * sockets (e.g. socket is tested between bind() and listen(),
955 * the socket is deleted and replaced in the file-system between
963 * Set ownership and file permissions on the UNIX domain socket.
966 * the socket as Solaris and SunOS do not honour the filesystem
967 * permissions on the socket.
977 void isc_socket_setname(isc_socket_t *socket, const char *name, void *tag);
979 * Set the name and optional tag for a socket. This allows tracking of the
980 * owner or purpose for this socket, and is useful for tracing and statistics
984 const char *isc_socket_getname(isc_socket_t *socket);
986 * Get the name associated with a socket, if any.
989 void *isc_socket_gettag(isc_socket_t *socket);
991 * Get the tag associated with a socket, if any.