• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/bind9-45.100/bind9/lib/isc/win32/

Lines Matching defs:socket

67 #include <isc/socket.h>
112 * Some systems define the socket length argument as an int, some as size_t,
174 SOCK_ACCEPT, /* TCP socket is waiting to accept */
183 * IPv6 control information. If the socket is an IPv6 socket we want
234 /* Locked by socket lock. */
243 * Each recv() call uses this buffer. It is a per-socket receive
265 unsigned int listener : 1, /* listener socket */
494 * Create a private heap to handle the socket overlapped structure
535 * Associate a socket with an IO Completion Port. This allows us to queue events for it
577 * Routine to cleanup and then close the socket.
578 * Only close the socket here if it is NOT associated
581 * be running while closing an event or a socket.
582 * The socket is locked before calling this function
630 sock = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
656 * Initialize socket services
862 "socket %p line %d: %s", sock, lineno, msgbuf);
867 "socket %p line %d peer %s: %s", sock, lineno,
882 /* Set the socket to non-blocking */
901 * socket from using the WSARecvFrom in subsequent operations.
1338 * socket is UDP or TCP. If it is UDP, some errors
1502 * Verify that the socket state is consistent.
1548 * Maybe free the socket.
1550 * This function will verify tht the socket is no longer in use in any way,
1553 * the socket (e.g., some reference counter reaches zero), it should call
1556 * When calling this function, the socket must be locked, and the manager
1597 * Seems we can free the socket after all.
1601 ISC_MSG_DESTROYING, "freeing socket line %d fd %d lock %p semaphore %p",
1621 * Create a new 'type' socket managed by 'manager'. Events
1623 * called with 'arg' as the arg value. The new socket is returned
1652 sock->fd = socket(pf, SOCK_DGRAM, IPPROTO_UDP);
1669 sock->fd = socket(pf, SOCK_STREAM, IPPROTO_TCP);
1690 "socket() %s: %s",
1781 * Note we don't have to lock the socket like we normally would because
1804 * Attach to a socket. Caller must explicitly detach when it is done.
1820 * Dereference a socket. If this is the last reference to it, clean things
1821 * up by destroying the socket.
1863 * Dequeue an item off the given socket's read queue, set the result code
1870 * Caller must have the socket locked if the event is attached to the socket.
1960 * Note the socket is locked before entering here
2003 * Extract the addresses from the socket, copy them into the structure,
2004 * and return the new socket.
2054 * Called when a socket with a pending connect() finishes.
2055 * Note that the socket is locked before entering.
2144 * Loop through the socket, returning ISC_R_EOF for each done event pending.
2211 * Unlock and/or destroy if we are the last thing this socket has left to do.
2223 * Find out what socket this is and lock it.
2232 "internal_send: task got socket event %p", dev);
2322 // This code should only be called when the listening socket has received
2323 // such an error. Additionally, the "parent" socket must be locked.
2334 * AcceptEx() requires we pass in a socket. Note that we carefully
2335 * do not close the previous socket in case of an error message returned by
2336 * our new socket() call. If we return an error here, our caller will
2339 new_fd = socket(parent->pf, SOCK_STREAM, IPPROTO_TCP);
2548 * Create a new socket manager.
2630 * Destroy a socket manager.
2714 * Caller must have the socket locked.
2767 * Make sure that the socket is not closed. XXXMLG change error here?
2835 * make sure that the socket's not closed
2873 * make sure that the socket's not closed
2904 * Caller must have the socket locked.
2996 * make sure that the socket's not closed
3048 * make sure that the socket's not closed
3104 * make sure that the socket's not closed
3133 * make sure that the socket's not closed
3197 * Set up to listen on a given socket. We do this by creating an internal
3198 * event that will be dispatched when the socket has read activity. The
3216 * make sure that the socket's not closed
3271 * make sure that the socket's not closed
3283 * actual ev_sender will be touched up to be the socket.
3302 * AcceptEx() requires we pass in a socket.
3304 nsock->fd = socket(sock->pf, SOCK_STREAM, IPPROTO_TCP);
3313 * Attach to socket and to task.
3396 * make sure that the socket's not closed
3404 * Windows sockets won't connect unless the socket is bound.
3495 * make sure that the socket's not closed
3527 * make sure that the socket's not closed
3558 * Run through the list of events on this socket, and cancel the ones
3577 * make sure that the socket's not closed
3696 * make sure that the socket's not closed
3718 * make sure that the socket's not closed
3767 isc__socket_setname(isc_socket_t *socket, const char *name, void *tag) {
3770 * Name 'socket'.
3773 REQUIRE(VALID_SOCKET(socket));
3775 LOCK(&socket->lock);
3776 memset(socket->name, 0, sizeof(socket->name));
3777 strncpy(socket->name, name, sizeof(socket->name) - 1);
3778 socket->tag = tag;
3779 UNLOCK(&socket->lock);
3783 isc__socket_getname(isc_socket_t *socket) {
3784 return (socket->name);
3788 isc__socket_gettag(isc_socket_t *socket) {
3789 return (socket->tag);
3842 xmlTextWriterStartElement(writer, ISC_XMLCHAR "socket");
3903 xmlTextWriterEndElement(writer); /* socket */