/macosx-10.9.5/ntp-88/lib/isc/include/isc/ |
H A D | httpd.h | 40 isc_httpdmgr_create(isc_mem_t *mctx, isc_socket_t *sock, isc_task_t *task,
|
/macosx-10.9.5/postfix-252/postfix/src/smtp/ |
H A D | smtp_connect.c | 129 int sock; local 155 if ((sock = socket(AF_UNIX, SOCK_STREAM, 0)) < 0) 164 return (smtp_connect_sock(sock, (struct sockaddr *) & sock_un, 180 int sock; local 199 if ((sock = socket(sa->sa_family, SOCK_STREAM, 0)) < 0) 203 set_inet_windowsize(sock, inet_windowsize); 227 if (bind(sock, res0->ai_addr, res0->ai_addrlen) < 0) 255 if (bind(sock, own_addr, SOCK_ADDR_LEN(own_addr)) < 0) { 275 return (smtp_connect_sock(sock, sa, salen, SMTP_HNAME(addr), hostaddr.buf, 281 static SMTP_SESSION *smtp_connect_sock(int sock, struc argument [all...] |
/macosx-10.9.5/ruby-104/ruby/lib/webrick/ |
H A D | utils.rb | 85 sock = TCPServer.new(ai[3], port) 86 port = sock.addr[1] if port == 0 87 Utils::set_close_on_exec(sock) 88 sockets << sock
|
/macosx-10.9.5/curl-78.94.1/curl/lib/ |
H A D | socks_gssapi.c | 117 curl_socket_t sock = conn->sock[sockindex]; local 207 code = Curl_write_plain(conn, sock, (char *)socksreq, 4, &written); 217 code = Curl_write_plain(conn, sock, (char *)gss_send_token.value, 245 result=Curl_blockread_all(conn, sock, (char *)socksreq, 4, &actualread); 284 result=Curl_blockread_all(conn, sock, (char *)gss_recv_token.value, 413 code = Curl_write_plain(conn, sock, (char *)socksreq, 4, &written); 423 code = Curl_write_plain(conn, sock, socksreq, 1, &written); 431 code = Curl_write_plain(conn, sock, (char *)gss_w_token.value, 442 result=Curl_blockread_all(conn, sock, (cha [all...] |
H A D | pingpong.c | 85 curl_socket_t sock = conn->sock[FIRSTSOCKET]; local 109 rc = Curl_socket_ready(pp->sendleft?CURL_SOCKET_BAD:sock, /* reading */ 110 pp->sendleft?sock:CURL_SOCKET_BAD, /* writing */ 200 error = Curl_write(conn, conn->sock[FIRSTSOCKET], s, write_len, 464 socks[0] = conn->sock[FIRSTSOCKET]; 481 curl_socket_t sock = conn->sock[FIRSTSOCKET]; local 483 result = Curl_write(conn, sock, pp->sendthis + pp->sendsize -
|
/macosx-10.9.5/mDNSResponder-522.92.1/mDNSWindows/ |
H A D | mDNSWin32.h | 75 struct UDPSocket_struct sock; member in struct:mDNSInterfaceData 152 extern mStatus TCPAddSocket( mDNS * const inMDNS, TCPSocket *sock );
|
/macosx-10.9.5/network_cmds-433/natd.tproj/ |
H A D | icmp.c | 60 int SendNeedFragIcmp (int sock, struct ip* failedDgram, int mtu) argument 135 wrote = sendto (sock,
|
/macosx-10.9.5/passwordserver_sasl-170/cyrus_sasl/sample/ |
H A D | client.c | 198 int err, sock = -1; local 210 sock = socket(r->ai_family, r->ai_socktype, r->ai_protocol); 211 if (sock < 0) 213 if (connect(sock, r->ai_addr, r->ai_addrlen) >= 0) 215 close(sock); 216 sock = -1; 220 if (sock < 0) { 225 return sock;
|
/macosx-10.9.5/Security-55471.14.18/libsecurity_ssl/regressions/ |
H A D | ssl-45-tls12.c | 74 int sock; local 103 sock = socket(AF_INET, SOCK_STREAM, 0); 108 err = connect(sock, (struct sockaddr *) &addr, sizeof(struct sockaddr_in)); 116 return sock; 169 static SSLContextRef make_ssl_ref(int sock, SSLProtocol maxprot) argument 176 require_noerr(SSLSetConnection(ctx, (SSLConnectionRef)(intptr_t)sock), out);
|
/macosx-10.9.5/OpenSSH-186/openssh/ |
H A D | sshconnect.c | 197 int sock, gaierr; local 207 sock = rresvport_af(&p, ai->ai_family); 209 if (sock < 0) 214 return sock; 216 sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol); 217 if (sock < 0) { 221 fcntl(sock, F_SETFD, FD_CLOEXEC); 225 return sock; 236 close(sock); 239 if (bind(sock, re 350 int sock = -1, attempt; local [all...] |
H A D | authfd.c | 103 int sock; local 114 sock = socket(AF_UNIX, SOCK_STREAM, 0); 115 if (sock < 0) 119 if (fcntl(sock, F_SETFD, FD_CLOEXEC) == -1) { 120 close(sock); 123 if (connect(sock, (struct sockaddr *)&sunaddr, sizeof sunaddr) < 0) { 124 close(sock); 128 return sock; 185 ssh_close_authentication_socket(int sock) argument 188 close(sock); 203 int sock; local [all...] |
/macosx-10.9.5/tcl-102/tcl_ext/sdx/sdx/lib/ftp/ |
H A D | ftp_lib.tcl | 201 # sock - socket name 206 proc StateHandler {{sock ""}} { 218 if { $sock != "" } { 220 set number [gets $sock bufline] 232 set number [gets $sock bufline] 2006 # sock - socket name (data channel) 2008 proc HandleData {sock} { 2012 fileevent $sock writable {} 2013 fileevent $sock readable {} 2056 # sock [all...] |
/macosx-10.9.5/bind9-45.100/bind9/bin/named/ |
H A D | controlconf.c | 79 isc_socket_t * sock; member in struct:controlconnection 95 isc_socket_t * sock; member in struct:controllistener 144 if (listener->sock != NULL) 145 isc_socket_detach(&listener->sock); 176 isc_socket_cancel(conn->sock, listener->task, 214 isc_socket_cancel(listener->sock, listener->task, 240 result = isc_socket_accept(listener->sock, 256 result = isc_socket_listen(listener->sock, 0); 274 isc_socket_t *sock = (isc_socket_t *)sevent->ev_sender; local 289 (void)isc_socket_getpeername(sock, 528 newconnection(controllistener_t *listener, isc_socket_t *sock) argument 574 isc_socket_t *sock; local [all...] |
/macosx-10.9.5/CF-855.17/ |
H A D | CFSocket.c | 54 DISPATCH_HELPER_FUNCTIONS(sock, CFSocket) 142 CF_INLINE Boolean __CFSocketIsValid(CFSocketRef sock) { 143 return kCFSocketStateReady == sock->_state; 147 CFSocketRef sock = (CFSocketRef)cf; 149 if (NULL != sock->_context.info && NULL != sock->_context.copyDescription) { 150 contextDesc = sock->_context.copyDescription(sock->_context.info); 153 contextDesc = CFStringCreateWithFormat(kCFAllocatorSystemDefault, NULL, CFSTR("<CFSocket context %p>"), sock->_context.info); 156 void *addr = sock 1026 __CFSocketFdSet(CFSocketNativeHandle sock, CFMutableDataRef fdSet) argument 1198 __CFNativeSocketIsValid(CFSocketNativeHandle sock) argument 1209 __CFSocketFdClr(CFSocketNativeHandle sock, CFMutableDataRef fdSet) argument 1476 CFSocketNativeHandle sock = INVALID_SOCKET; local 2101 CFSocketNativeHandle sock = s->_socket; local 2140 CFSocketNativeHandle sock = s->_socket; local 2160 CFSocketNativeHandle sock = s->_socket; local 2291 _CFSocketCreateWithNative(CFAllocatorRef allocator, CFSocketNativeHandle sock, CFOptionFlags callBackTypes, CFSocketCallBack callout, const CFSocketContext *context, Boolean useExistingInstance) argument 2378 CFSocketCreateWithNative(CFAllocatorRef allocator, CFSocketNativeHandle sock, CFOptionFlags callBackTypes, CFSocketCallBack callout, const CFSocketContext *context) argument 2699 __CFSocketDoCallback(CFSocketRef s, CFDataRef data, CFDataRef address, CFSocketNativeHandle sock) argument 2785 CFSocketNativeHandle sock = INVALID_SOCKET; local 2925 __CFSocketFdSet(CFSocketNativeHandle sock, CFMutableDataRef fdSet) argument 2954 CFSocketNativeHandle sock = INVALID_SOCKET; local 3102 CFSocketNativeHandle sock = INVALID_SOCKET; local [all...] |
/macosx-10.9.5/ruby-104/ruby/ext/socket/ |
H A D | init.c | 43 rsock_init_sock(VALUE sock, int fd) argument 60 MakeOpenFile(sock, fp); 63 rb_io_ascii8bit_binmode(sock); 69 return sock; 106 rsock_s_recvfrom(VALUE sock, int argc, VALUE *argv, enum sock_recv_type from) argument 121 GetOpenFile(sock, fptr); 167 return rb_assoc_new(str, rsock_io_socket_addrinfo(sock, (struct sockaddr*)&arg.buf, arg.alen)); 174 rsock_s_recvfrom_nonblock(VALUE sock, int argc, VALUE *argv, enum sock_recv_type from) argument 198 GetOpenFile(sock, fptr); 234 addr = rsock_io_socket_addrinfo(sock, (struc [all...] |
/macosx-10.9.5/tcl-102/tcl/tcl/win/ |
H A D | tclWinSock.c | 910 SOCKET sock = INVALID_SOCKET; 933 sock = socket(AF_INET, SOCK_STREAM, 0); 934 if (sock == INVALID_SOCKET) { 943 SetHandleInformation((HANDLE) sock, HANDLE_FLAG_INHERIT, 0); 949 TclSockMinimumBuffers((int) sock, TCP_BUFFER_SIZE); 962 if (bind(sock, (SOCKADDR *) &sockaddr, sizeof(SOCKADDR_IN)) 973 if (listen(sock, SOMAXCONN) == SOCKET_ERROR) { 981 infoPtr = NewSocketInfo(sock); 996 if (bind(sock, (SOCKADDR *) &mysockaddr, sizeof(SOCKADDR_IN)) 1008 if (ioctlsocket(sock, (lon 898 SOCKET sock = INVALID_SOCKET; local 1278 Tcl_MakeTcpClientChannel( ClientData sock) argument 1752 SOCKET sock; local 1855 SOCKET sock; local [all...] |
/macosx-10.9.5/bind9-45.100/bind9/lib/isc/ |
H A D | httpd.c | 83 isc_socket_t *sock; member in struct:isc_httpd 139 isc_socket_t *sock; /*%< listening socket */ member in struct:isc_httpdmgr 241 isc_socket_detach(&httpd->sock); 256 isc_httpdmgr_create(isc_mem_t *mctx, isc_socket_t *sock, isc_task_t *task, argument 265 REQUIRE(sock != NULL); 281 httpd->sock = NULL; 282 isc_socket_attach(sock, &httpd->sock); 294 result = isc_socket_listen(sock, SOMAXCONN); 302 (void)isc_socket_filter(sock, "httpread [all...] |
/macosx-10.9.5/ntp-88/lib/isc/ |
H A D | httpd.c | 83 isc_socket_t *sock; member in struct:isc_httpd 139 isc_socket_t *sock; /*%< listening socket */ member in struct:isc_httpdmgr 235 isc_socket_detach(&httpd->sock); 250 isc_httpdmgr_create(isc_mem_t *mctx, isc_socket_t *sock, isc_task_t *task, argument 259 REQUIRE(sock != NULL); 275 httpd->sock = NULL; 276 isc_socket_attach(sock, &httpd->sock); 288 result = isc_socket_listen(sock, SOMAXCONN); 296 (void)isc_socket_filter(sock, "httpread [all...] |
/macosx-10.9.5/ruby-104/ruby/test/open-uri/ |
H A D | test_open-uri.rb | 106 sock = serv.accept 108 req = sock.gets("\r\n\r\n") 110 sock.print "HTTP/1.0 200 OK\r\n" 111 sock.print "Content-Length: 4\r\n\r\n" 113 sock.print "ab\r\n" 115 sock.close 306 sock = serv.accept 308 req = sock.gets("\r\n\r\n") 310 sock.print "HTTP/1.0 302 Found\r\n" 311 sock [all...] |
/macosx-10.9.5/configd-596.15/Plugins/KernelEventMonitor/ |
H A D | ev_ipv6.c | 258 int sock = -1; local 295 if (sock == -1) { 296 sock = dgram_socket(AF_INET6); 297 if (sock == -1) { 332 if (ioctl(sock, SIOCGIFAFLAG_IN6, &ifr6) == -1) { 396 if (sock != -1) close(sock);
|
/macosx-10.9.5/dcerpc-58/dcerpc/ncklib/ |
H A D | dgsoc.c | 135 serr = RPC_SOCKET_CLOSE((*sp)->sock); 140 (*sp)->sock, RPC_SOCKET_ETOI(serr))); 441 eltp->sock = socket_desc; 601 sp->sock)); 608 * For shared sockets, remove the sock from the listener's database 616 rpc__network_remove_desc(sp->sock, &st); 665 (void) RPC_SOCKET_CLOSE(eltp->sock); 674 (void) RPC_SOCKET_CLOSE(eltp->sock);
|
/macosx-10.9.5/tcl-102/tcl_ext/tcllib/tcllib/modules/ftp/ |
H A D | ftp.tcl | 230 # sock - socket name 235 proc ::ftp::StateHandler {s {sock ""}} { 248 if { $sock != "" } { 251 catch {set number [gets $sock bufline]} 270 set number [gets $sock bufline] 2551 # sock - socket name (data channel) 2553 proc ::ftp::HandleData {s sock} { 2558 fileevent $sock writable {} 2559 fileevent $sock readable {} 2635 # sock [all...] |
/macosx-10.9.5/mDNSResponder-522.92.1/mDNSShared/ |
H A D | PlatformCommon.c | 40 int sock = socket(AF_INET, SOCK_DGRAM, 0); local 42 if (sock == -1) return; 67 if ((connect(sock, &addr.s, inner_len)) < 0) 70 if ((getsockname(sock, &addr.s, &len)) < 0) 77 close(sock);
|
H A D | dnsextd.c | 115 TCPSocket *sock; // socket connected to client member in struct:__anon11039 238 mDNSlocal mStatus AddSourceToEventLoop( DaemonInfo * self, TCPSocket *sock, EventCallback callback, void *context ) argument 257 newSource->sock = sock; 258 newSource->fd = mDNSPlatformTCPGetFD( sock ); 270 mDNSlocal mStatus RemoveSourceFromEventLoop( DaemonInfo * self, TCPSocket *sock ) 277 if ( source->sock == sock ) 305 TCPSocket *sock = mDNSPlatformTCPSocket( NULL, 0, &port, mDNSfalse ); local 306 if ( !sock ) { LogEr 323 MySend(TCPSocket *sock, const void *msg, int len) argument 351 SendPacket(TCPSocket *sock, PktMsg *pkt) argument 368 my_recv(TCPSocket *sock, void *const buf, const int len, mDNSBool * closed) argument 413 RecvPacket( TCPSocket * sock, PktMsg * storage, mDNSBool * closed ) argument 910 TCPSocket *sock = NULL; local 1292 DeleteOneRecord(DaemonInfo *d, CacheRecord *rr, domainname *zname, TCPSocket *sock) argument 1342 TCPSocket *sock = ConnectToServer(d); local 1514 TCPSocket * sock = NULL; local 1709 SendLLQ(DaemonInfo *d, PktMsg *pkt, struct sockaddr_in dst, TCPSocket *sock) argument 1742 TCPSocket *sock = NULL; local 2155 LLQCompleteHandshake(DaemonInfo *d, LLQEntry *e, LLQOptData *llq, mDNSOpaque16 msgID, TCPSocket *sock) argument [all...] |
/macosx-10.9.5/postfix-252/postfix/src/util/ |
H A D | inet_proto.c | 190 int sock; local 200 if ((sock = socket(PF_INET6, SOCK_STREAM, 0)) >= 0) { 201 close(sock); 211 if ((sock = socket(PF_INET, SOCK_STREAM, 0)) >= 0) { 212 close(sock);
|