/macosx-10.9.5/bind9-45.100/bind9/lib/lwres/ |
H A D | context_p.h | 47 int sock; /*%< socket to send on */ member in struct:lwres_context
|
H A D | context.c | 181 ctx->sock = -1; 221 if (ctx->sock != -1) { 225 (void)close(ctx->sock); 226 ctx->sock = -1; 360 ctx->sock = s; 367 return (ctx->sock); 376 if (ctx->sock == -1) { 382 ret = sendto(ctx->sock, sendbase, sendlen, 0, NULL, 0); 416 ret = recvfrom(ctx->sock, recvbase, recvlen, 0, sa, (void *)&fromlen); 479 if (ctx->sock > [all...] |
/macosx-10.9.5/dcerpc-58/dcerpc/ncklib/ |
H A D | ipnaf_linux.c | 127 rpc_socket_t /*sock*/, 134 rpc_socket_t /*sock*/, 202 rpc_socket_t sock ATTRIBUTE_UNUSED, 213 rpc_socket_t sock ATTRIBUTE_UNUSED, 285 rpc_socket_t sock, 307 err = rpc__socket_inq_endpoint (sock, (rpc_addr_p_t) &loc_ip_addr); 316 err = rpc__socket_enum_ifaces(sock, get_addr_noloop, rpc_addr_vec, NULL, NULL); 415 rpc_socket_t sock ATTRIBUTE_UNUSED, 487 rpc_socket_t sock = RPC_SOCKET_INVALID; 492 err = rpc__socket_open(protseq_id, NULL, &sock); 281 rpc__ip_desc_inq_addr( rpc_protseq_id_t protseq_id, rpc_socket_t sock, rpc_addr_vector_p_t *rpc_addr_vec, unsigned32 *status ) argument 484 rpc_socket_t sock = RPC_SOCKET_INVALID; local 552 rpc_socket_t sock = RPC_SOCKET_INVALID; local [all...] |
/macosx-10.9.5/ipsec-258.100.1/ipsec-tools/racoon/ |
H A D | grabmyaddr.h | 40 int sock; member in struct:myaddrs
|
/macosx-10.9.5/xnu-2422.115.4/tools/tests/libMicro/ |
H A D | getpeername.c | 53 static int sock = -1; variable 135 sock = accept(sock2, (struct sockaddr *)&adds, &size); 136 if (sock == -1) { 154 if (getpeername(sock, (struct sockaddr *)&adds, &size) == -1) {
|
/macosx-10.9.5/CPANInternal-140/Net-DNS/lib/Net/DNS/ |
H A D | Nameserver.pm | 245 my ($self, $sock) = @_; 246 return -1 unless defined $self->{"_tcp"}{$sock}; 247 my $peer = $self->{"_tcp"}{$sock}{"peer"}; 248 my $charsread = $sock->sysread( 249 $self->{"_tcp"}{$sock}{"inbuffer"}, 251 $self->{"_tcp"}{$sock}{"timeout"} = time()+120; # Reset idle timer 255 $self->{"select"}->remove($sock); 256 $sock->close(); 257 delete $self->{"_tcp"}{$sock}; 268 my ($self, $sock) [all...] |
/macosx-10.9.5/tcl-102/tcl_ext/tcllib/tcllib/modules/nntp/ |
H A D | nntp.tcl | 130 set sock [socket $data(host) $data(port)] 132 set data(sock) $sock 649 close $data(sock) 796 set sock $data(sock) 798 puts stderr "$sock command $cmd" 800 puts $sock "$cmd" 801 flush $sock 865 set sock [all...] |
/macosx-10.9.5/curl-78.94.1/curl/tests/server/ |
H A D | sockfilt.c | 526 curl_socket_t sock, *fdarr, *wsasocks; local 631 sock = fdarr[idx]; 632 fds = curlx_sktosi(sock); 647 FD_CLR(sock, readfds); 673 FD_CLR(sock, readfds); 678 FD_CLR(sock, writefds); 679 FD_CLR(sock, exceptfds); 683 FD_CLR(sock, readfds); 684 FD_CLR(sock, exceptfds); 692 FD_CLR(sock, readfd 1029 sockdaemon(curl_socket_t sock, unsigned short *listenport) argument 1174 curl_socket_t sock = CURL_SOCKET_BAD; local [all...] |
/macosx-10.9.5/tcl-102/tcl_ext/sdx/sdx/lib/autoproxy/ |
H A D | autoproxy.tcl | 421 set state(sock) [::socket $options(proxy_host) $options(proxy_port)] 422 fileevent $state(sock) writable [namespace code [list tunnel_write $token]] 427 close $state(sock) 433 close $state(sock) 436 set result $state(sock) 448 fileevent $state(sock) writable {} 449 if {[catch {set state(error) [fconfigure $state(sock) -error]} err]} { 456 fconfigure $state(sock) -blocking 0 -buffering line -translation crlf 458 puts $state(sock) "CONNECT $host:$port HTTP/1.1" 459 puts $state(sock) "Hos [all...] |
/macosx-10.9.5/tcl-102/tcl_ext/tcllib/tcllib/examples/sasl/ |
H A D | saslclient.tcl | 204 set sock [socket $server $port] 205 fconfigure $sock -buffering line -blocking 1 -translation {auto crlf} 206 fileevent $sock readable [list Read $sock ::Callback] 209 catch {close $sock}
|
/macosx-10.9.5/tcl-102/tcl_ext/tcllib/tcllib/modules/http/ |
H A D | autoproxy.tcl | 421 set state(sock) [::socket $options(proxy_host) $options(proxy_port)] 422 fileevent $state(sock) writable [namespace code [list tunnel_write $token]] 427 close $state(sock) 433 close $state(sock) 436 set result $state(sock) 448 fileevent $state(sock) writable {} 449 if {[catch {set state(error) [fconfigure $state(sock) -error]} err]} { 456 fconfigure $state(sock) -blocking 0 -buffering line -translation crlf 458 puts $state(sock) "CONNECT $host:$port HTTP/1.1" 459 puts $state(sock) "Hos [all...] |
/macosx-10.9.5/tcl-102/tcl_ext/tclsoap/tclsoap/ |
H A D | SOAP-domain.tcl | 126 # sock socket back to the client 129 proc ::SOAP::Domain::domain_handler {optsname sock args} { 131 upvar \#0 Httpd$sock data 143 Httpd_ReturnData $sock text/xml [SOAP::fault SOAP-ENV:Client $msg] 500 152 Httpd_ReturnData $sock text/xml [SOAP::fault SOAP-ENV:Client $msg] 500 160 Httpd_ReturnData $sock text/xml [SOAP::fault SOAP-ENV:Server $msg] 500 171 Httpd_ReturnData $sock text/xml $msg [expr {$failed ? 500 : 200}]
|
/macosx-10.9.5/Heimdal-323.92.1/kdc/ |
H A D | hpropd.c | 78 krb5_socket_t sock = rk_INVALID_SOCKET; local 119 sock = STDIN_FILENO; 128 sock = STDIN_FILENO; 131 if (getpeername (sock, sa, &sin_len) < 0) { 142 HPROP_PORT), &sock); 145 if(getpeername(sock, sa, &sin_len) < 0) 171 ret = krb5_recvauth(context, &ac, &sock, HPROP_VERSION, NULL, 226 ret = krb5_read_message(context, &sock, &data); 230 ret = krb5_read_priv_message(context, ac, &sock, &data); 239 krb5_write_priv_message(context, ac, &sock, [all...] |
/macosx-10.9.5/apache-786.1/httpd/modules/proxy/ |
H A D | mod_proxy_connect.c | 81 apr_socket_t *sock; local 194 failed = ap_proxy_connect_to_backend(&sock, "CONNECT", connect_addr, 232 apr_socket_send(sock, buffer, &nbytes); 235 apr_socket_send(sock, buffer, &nbytes); 271 apr_socket_close(sock); 286 pollfd.desc.s = sock; 294 apr_socket_close(sock); 306 if (cur->desc.s == sock) { 311 "proxy: CONNECT: sock was set"); 314 rv = apr_socket_recv(sock, buffe [all...] |
/macosx-10.9.5/ruby-104/ruby/ext/socket/ |
H A D | ipsocket.c | 15 VALUE sock; member in struct:inetsock_arg 116 return rsock_init_sock(arg->sock, fd); 120 rsock_init_inetsock(VALUE sock, VALUE remote_host, VALUE remote_serv, argument 124 arg.sock = sock; 174 * TCPSocket.open("www.ruby-lang.org", 80) {|sock| 175 * p sock.addr #=> ["AF_INET", 49429, "hal", "192.168.0.128"] 176 * p sock.addr(true) #=> ["AF_INET", 49429, "hal", "192.168.0.128"] 177 * p sock.addr(false) #=> ["AF_INET", 49429, "192.168.0.128", "192.168.0.128"] 178 * p sock 184 ip_addr(int argc, VALUE *argv, VALUE sock) argument 225 ip_peeraddr(int argc, VALUE *argv, VALUE sock) argument 263 ip_recvfrom(int argc, VALUE *argv, VALUE sock) argument [all...] |
H A D | unixsocket.c | 29 rsock_init_unixsock(VALUE sock, VALUE path, int server) argument 79 rsock_init_sock(sock, fd); 81 GetOpenFile(sock, fptr); 85 return sock; 94 * s = UNIXSocket.new("/tmp/sock") 99 unix_init(VALUE sock, VALUE path) argument 101 return rsock_init_unixsock(sock, path, 0); 110 * s = UNIXServer.new("/tmp/sock") 111 * p s.path #=> "/tmp/sock" 115 unix_path(VALUE sock) argument 156 unix_recvfrom(int argc, VALUE *argv, VALUE sock) argument 203 unix_send_io(VALUE sock, VALUE val) argument 297 unix_recv_io(int argc, VALUE *argv, VALUE sock) argument 424 unix_addr(VALUE sock) argument 452 unix_peeraddr(VALUE sock) argument [all...] |
/macosx-10.9.5/postfix-252/postfix/src/smtpstone/ |
H A D | qmqp-sink.c | 202 int sock = CAST_CHAR_PTR_TO_INT(context); local 208 if ((fd = accept(sock, &sa, &len)) >= 0) { 247 int sock; local 306 sock = unix_listen(argv[optind] + 5, backlog, BLOCKING); 310 sock = inet_listen(argv[optind], backlog, BLOCKING); 316 event_enable_read(sock, connect_event, CAST_INT_TO_CHAR_PTR(sock));
|
/macosx-10.9.5/cups-372.4/cups/cups/ |
H A D | http-addrlist.c | 43 int *sock) /* O - Socket */ 45 DEBUG_printf(("httpAddrConnect(addrlist=%p, sock=%p)", addrlist, sock)); 47 return (httpAddrConnect2(addrlist, sock, 30000, NULL)); 61 int *sock, /* O - Socket */ 85 DEBUG_printf(("httpAddrConnect2(addrlist=%p, sock=%p, msec=%d, cancel=%p)", 86 addrlist, sock, msec, cancel)); 88 if (!sock) 118 if ((*sock = (int)socket(_httpAddrFamily(&(addrlist->addr)), SOCK_STREAM, 135 setsockopt(*sock, SOL_SOCKE 41 httpAddrConnect( http_addrlist_t *addrlist, int *sock) argument 59 httpAddrConnect2( http_addrlist_t *addrlist, int *sock, int msec, int *cancel) argument [all...] |
/macosx-10.9.5/mDNSResponder-522.92.1/mDNSWindows/ |
H A D | mDNSWin32.c | 166 mDNSlocal void CALLBACK TCPSocketNotification( SOCKET sock, LPWSANETWORKEVENTS event, void *context ); 168 mDNSlocal void CALLBACK UDPSocketNotification( SOCKET sock, LPWSANETWORKEVENTS event, void *context ); 169 mDNSlocal void UDPCloseSocket( UDPSocket * sock ); 957 TCPSocket * sock = NULL; local 970 sock = (TCPSocket *) malloc( sizeof( TCPSocket ) ); 971 require_action( sock, exit, err = mStatus_NoMemoryErr ); 972 mDNSPlatformMemZero( sock, sizeof( TCPSocket ) ); 973 sock->fd = INVALID_SOCKET; 974 sock->flags = flags; 975 sock 1028 mDNSPlatformTCPConnect( TCPSocket * sock, const mDNSAddr * inDstIP, mDNSOpaque16 inDstPort, domainname * hostname, mDNSInterfaceID inInterfaceID, TCPConnectionCallback inCallback, void * inContext ) argument 1088 TCPSocket * sock = NULL; local 1141 mDNSPlatformReadTCP( TCPSocket *sock, void *inBuffer, unsigned long inBufferSize, mDNSBool * closed ) argument 1181 mDNSPlatformWriteTCP( TCPSocket *sock, const char *inMsg, unsigned long inMsgSize ) argument 1217 TCPSocketNotification( SOCKET sock, LPWSANETWORKEVENTS event, void *context ) argument 1259 UDPSocket* sock = NULL; local 2206 mDNSPlatformGetUDPPort(UDPSocket *sock) argument 2956 SocketRef sock; local 3212 UDPSocketNotification( SOCKET sock, LPWSANETWORKEVENTS event, void *context ) argument 3892 SOCKET sock; local 4214 SocketRef sock; local 5126 SOCKET sock; local [all...] |
/macosx-10.9.5/remote_cmds-41.90.1/timed.tproj/timedc.tproj/ |
H A D | cmds.c | 67 int sock; variable 103 if (sendto(sock, &sec, sizeof(sec), 0, 105 warn("sendto(sock)"); 111 FD_SET(sock, &ready); 112 i = select(sock+1, &ready, (fd_set *)0, 124 if (recvfrom(sock,&sec,sizeof(sec),0, 314 if (sendto(sock, &msg, sizeof(struct tsp), 0, 324 FD_SET(sock, &ready); 328 cc = recvfrom(sock, &msg, sizeof(struct tsp), 0, 417 if (sendto(sock, [all...] |
/macosx-10.9.5/configd-596.15/SystemConfiguration.fproj/ |
H A D | DeviceOnHold.c | 61 int sock; member in struct:__anon7061 87 if (DeviceOnHoldPrivate->sock != -1) { 141 devicePrivate->sock = -1; 243 status = MOHInit(&devicePrivate->sock, deviceName); 270 if (devicePrivate->sock == -1) { 274 err = MOHExec(devicePrivate->sock, 309 if (devicePrivate->sock == -1) { 313 err = MOHExec(devicePrivate->sock, 348 if (devicePrivate->sock == -1) { 352 err = MOHExec(devicePrivate->sock, [all...] |
/macosx-10.9.5/tcl-102/tcl_ext/tcllib/tcllib/modules/transfer/ |
H A D | receiver.tcl | 147 method Begin {__ sock} { 149 $mydestination receive $sock \ 150 [mymethod Done $sock] 154 method Done {sock args} { 159 close $sock
|
H A D | transmitter.tcl | 134 method Begin {__ sock} { 136 $mysource transmit $sock \ 138 [mymethod Done $sock] 142 method Done {sock args} { 147 close $sock
|
/macosx-10.9.5/passwordserver_sasl-170/cyrus_sasl/sample/ |
H A D | server.c | 80 int err, maxs, *sock, *socks; local 104 sock = socks + 1; 107 *sock = socket(r->ai_family, r->ai_socktype, r->ai_protocol); 108 if (*sock < 0) { 112 if (setsockopt(*sock, SOL_SOCKET, SO_REUSEADDR, 115 close(*sock); 120 if (setsockopt(*sock, IPPROTO_IPV6, IPV6_BINDV6ONLY, 123 close(*sock); 128 if (bind(*sock, r->ai_addr, r->ai_addrlen) < 0) { 130 close(*sock); [all...] |
/macosx-10.9.5/ruby-104/ruby/test/openssl/ |
H A D | test_ssl_session.rb | 34 sock = TCPSocket.new '127.0.0.1', port 35 ssl = OpenSSL::SSL::SSLSocket.new sock, ctx 39 sock.close 45 sock = TCPSocket.new("127.0.0.1", port) 47 ssl = OpenSSL::SSL::SSLSocket.new(sock, ctx) 156 sock = TCPSocket.new("127.0.0.1", port) 160 ssl = OpenSSL::SSL::SSLSocket.new(sock, ctx) 242 sock = TCPSocket.new("127.0.0.1", port) 248 ssl = OpenSSL::SSL::SSLSocket.new(sock, ctx) 280 sock, ses [all...] |