/macosx-10.9.5/configd-596.15/configd.tproj/ |
H A D | _notifyviafd.c | 52 int sock; local 61 if ((sock = socket(AF_UNIX, SOCK_STREAM, 0)) == -1) { 66 *fd = sock; 101 int sock; local 152 *sc_status = __SCDynamicStoreNotifyFileDescriptor(mySession->store, identifier, &sock); 160 if (connect(sock, (struct sockaddr *)&un, sizeof(un)) == -1) { 163 (void) close(sock); 168 if (setsockopt(sock, SOL_SOCKET, SO_SNDBUF, &bufSiz, sizeof(bufSiz)) == -1) { 171 (void) close(sock); 176 if (ioctl(sock, FIONBI [all...] |
/macosx-10.9.5/postfix-252/postfix/src/util/ |
H A D | myaddrinfo.h | 171 #define hostname_to_sockaddr(host, serv, sock, res) \ 172 hostname_to_sockaddr_pf((host), PF_UNSPEC, (serv), (sock), (res)) 178 #define HOSTNAME_TO_SOCKADDR_PF(host, pf, serv, sock, res) \ 181 _aierr = hostname_to_sockaddr_pf((host), (pf), (serv), (sock), (res)); \ 186 #define HOSTNAME_TO_SOCKADDR(host, serv, sock, res) \ 187 HOSTNAME_TO_SOCKADDR_PF((host), PF_UNSPEC, (serv), (sock), (res)) 189 #define HOSTADDR_TO_SOCKADDR(host, serv, sock, res) \ 192 _aierr = hostaddr_to_sockaddr((host), (serv), (sock), (res)); \ 197 #define SOCKADDR_TO_HOSTADDR(sa, salen, host, port, sock) \ 200 _aierr = sockaddr_to_hostaddr((sa), (salen), (host), (port), (sock)); \ [all...] |
/macosx-10.9.5/ruby-104/ruby/test/net/http/ |
H A D | test_https_proxy.rb | 28 sock = serv.accept 29 proxy_request = sock.gets("\r\n\r\n") 37 sock.close
|
/macosx-10.9.5/tcl-102/tcl_ext/tclsoap/tclsoap/samples/ |
H A D | tclserver.tcl | 31 proc rpc_handler {sock args} { 32 upvar \#0 Httpd$sock data 44 Httpd_ReturnData $sock text/xml $result 200 46 Httpd_ReturnData $sock text/xml $err 500
|
/macosx-10.9.5/Heimdal-323.92.1/appl/test/ |
H A D | nt_gss_common.c | 46 * Write the `gss_buffer_t' in `buf' onto the fd `sock', but remember that 51 nt_write_token (int sock, gss_buffer_t buf) argument 64 if (write (sock, net_len, 4) != 4) 66 if (write (sock, buf->value, len) != len) 77 nt_read_token (int sock, gss_buffer_t buf) argument 82 if (read(sock, net_len, 4) != 4) 91 if (read (sock, buf->value, len) != len)
|
H A D | nt_gss_client.c | 46 proto (int sock, const char *hostname, const char *service) argument 75 if (getsockname (sock, (struct sockaddr *)&local, &addrlen) < 0 80 if (getpeername (sock, (struct sockaddr *)&remote, &addrlen) < 0 108 nt_write_token (sock, output_token); 117 nt_read_token (sock, input_token); 137 nt_write_token (sock, input_token); 138 nt_write_token (sock, output_token); 156 nt_write_token (sock, output_token);
|
H A D | gssapi_server.c | 42 process_it(int sock, argument 76 read_token (sock, input_token); 77 read_token (sock, output_token); 106 write_token (sock, input_token); 107 write_token (sock, output_token); 113 read_token (sock, input_token); 131 read_token (sock, input_token); 160 write_token (sock, output_token); 163 read_token (sock, input_token); 172 proto (int sock, cons argument 337 int sock, sock2; local [all...] |
H A D | gssapi_client.c | 42 do_trans (int sock, gss_ctx_id_t context_hdl) argument 63 write_token (sock, input_token); 64 write_token (sock, output_token); 70 read_token (sock, input_token); 71 read_token (sock, output_token); 99 write_token (sock, output_token); 111 write_token (sock, output_token); 113 read_token (sock, input_token); 124 write_token (sock, output_token); 134 proto (int sock, cons argument [all...] |
/macosx-10.9.5/apache-786.1/httpd/modules/proxy/ |
H A D | ajp_utils.c | 22 apr_status_t ajp_handle_cping_cpong(apr_socket_t *sock, argument 48 rc = ajp_ilink_send(sock, msg); 55 rc = apr_socket_timeout_get(sock, &org); 63 rc = apr_socket_timeout_set(sock, timeout); 72 rv = ajp_ilink_receive(sock, msg); 95 rc = apr_socket_timeout_set(sock, org);
|
/macosx-10.9.5/pyobjc-42/pyobjc/pyobjc-core/Modules/objc/test/ |
H A D | cfsocket.m | 16 CFSocketRef sock; 18 sock = CFSocketCreate(NULL, 0, 0, 0, 0, 0, 0); 19 return (id)sock;
|
/macosx-10.9.5/remote_cmds-41.90.1/rlogin.tproj/ |
H A D | krcmd.c | 100 int sock = -1, err = 0; local 105 &sock, 129 return(sock); 143 int sock, err; local 150 &sock, 175 return(sock);
|
/macosx-10.9.5/procmail-14/procmail/src/ |
H A D | authenticate.c | 57 int sock; member in struct:auth_identity 68 static const struct passwd*cgetpwnam(user,sock)const char*const user; 69 const int sock; 73 static const struct passwd*cgetpwuid(uid,sock)const uid_t uid;const int sock; 77 /*const*/auth_identity*auth_finduser(user,sock)char*const user;const int sock; 78 { if(!(authi.pw=cgetpwnam(user,sock))) /* /etc/passwd user lookup */ 83 if(!(authi.pw=cgetpwnam(user,sock))) /* ok, be nice and try again */ 86 authi.sock [all...] |
/macosx-10.9.5/ruby-104/ruby/lib/webrick/ |
H A D | server.rb | 173 if sock = accept_client(svr) 174 sock.do_not_reverse_lookup = config[:DoNotReverseLookup] 175 th = start_thread(sock, &block) 246 def run(sock) 259 sock = nil 261 sock = svr.accept 262 sock.sync = true 263 Utils::set_non_blocking(sock) 264 Utils::set_close_on_exec(sock) 271 return sock [all...] |
/macosx-10.9.5/tcl-102/tcl_ext/snack/snack/demos/tcl/ |
H A D | aserver.tcl | 13 proc Cmd { sock addr port } { 16 set cmd [read $sock 4] 20 puts $sock $s ;# return token for this job 21 flush $sock 22 $s configure -channel $sock -guessproperties yes 23 $s play -command "close $sock; set msg idle;$s destroy" 27 set handle [gets $sock] ;# get token (sound name) and stop playback 30 close $sock 34 close $sock
|
/macosx-10.9.5/ruby-104/ruby/ext/socket/ |
H A D | udpsocket.c | 27 udp_init(int argc, VALUE *argv, VALUE sock) argument 42 return rsock_init_sock(sock, fd); 84 udp_connect(VALUE sock, VALUE host, VALUE port) argument 92 GetOpenFile(sock, fptr); 113 udp_bind(VALUE sock, VALUE host, VALUE port) argument 120 GetOpenFile(sock, fptr); 156 udp_send(int argc, VALUE *argv, VALUE sock) argument 165 return rsock_bsock_send(argc, argv, sock); 172 GetOpenFile(sock, fptr); 244 udp_recvfrom_nonblock(int argc, VALUE *argv, VALUE sock) argument [all...] |
/macosx-10.9.5/OpenSSH-186/openssh/ |
H A D | canohost.c | 48 get_remote_hostname(int sock, int use_dns) argument 59 if (getpeername(sock, (struct sockaddr *)&from, &fromlen) < 0) { 65 check_ip_options(sock, ntop); 158 check_ip_options(int sock, char *ipaddr) argument 173 if (getsockopt(sock, ipproto, IP_OPTIONS, options, 247 get_socket_address(int sock, int remote, int flags) argument 259 if (getpeername(sock, (struct sockaddr *)&addr, &addrlen) 263 if (getsockname(sock, (struct sockaddr *)&addr, &addrlen) 285 get_peer_ipaddr(int sock) argument 289 if ((p = get_socket_address(sock, 295 get_local_ipaddr(int sock) argument 370 get_sock_port(int sock, int local) argument 421 get_peer_port(int sock) argument [all...] |
/macosx-10.9.5/apache-786.1/httpd/srclib/apr-util/test/ |
H A D | testssl.c | 55 apr_ssl_socket_t *sock; local 58 rv = apr_ssl_socket_create(&sock, AF_INET, SOCK_STREAM, 0, asf, NULL); 63 rv = apr_pollset_add_ssl_socket(pollset, sock); 69 return sock; 72 static apr_status_t connectSocket(apr_ssl_socket_t *sock, argument 85 rv = apr_ssl_socket_connect(sock, remoteSA); 94 static apr_status_t socketRead(apr_ssl_socket_t *sock, argument 103 rv = apr_ssl_socket_set_poll_events(sock, APR_POLLIN); 119 if (descs[0].client_data != sock) { 128 rv = apr_ssl_socket_recv(sock, bu 136 socketWrite(apr_ssl_socket_t *sock, apr_pollset_t *pollset, const char *buf, apr_size_t *len) argument 176 socketClose(apr_ssl_socket_t *sock, apr_pollset_t *pollset) argument [all...] |
/macosx-10.9.5/ruby-104/ruby/test/webrick/ |
H A D | test_cgi.rb | 94 sock = TCPSocket.new(addr, port) 96 sock << "POST /webrick.cgi HTTP/1.0" << CRLF 97 sock << "Content-Type: application/x-www-form-urlencoded" << CRLF 98 sock << "Content-Length: 1024" << CRLF 99 sock << CRLF 100 sock << "a=1&a=2&b=x" 101 sock.close_write 102 assert_match(%r{\AHTTP/\d.\d 400 Bad Request}, sock.read, log.call) 104 sock.close 115 res = TCPSocket.open(addr, port) {|sock| [all...] |
/macosx-10.9.5/apache-786.1/httpd/srclib/apr/test/ |
H A D | testsock.c | 109 apr_socket_t *sock; local 114 rv = apr_socket_create(&sock, sa->family, SOCK_STREAM, APR_PROTO_TCP, p); 117 rv = apr_socket_opt_set(sock, APR_SO_REUSEADDR, 1); 120 rv = apr_socket_bind(sock, sa); 124 rv = apr_socket_listen(sock, 5); 127 return sock; 133 apr_socket_t *sock = setup_socket(tc); local 135 if (!sock) return; 137 rv = apr_socket_close(sock); 144 apr_socket_t *sock; local 176 apr_socket_t *sock; local 210 apr_socket_t *sock; local 271 apr_socket_t *sock; local [all...] |
H A D | sockperf.c | 71 static void closeConnection(apr_socket_t *sock) argument 74 apr_socket_send(sock, NULL, &len); 80 apr_socket_t *sock; local 97 rv = apr_socket_create(&sock, APR_INET, SOCK_STREAM, APR_PROTO_TCP, 104 rv = apr_socket_connect(sock, sockAddr); 107 apr_socket_close(sock); 110 apr_socket_close(sock); 124 rv = apr_socket_create(&sock, APR_INET, SOCK_STREAM, APR_PROTO_TCP, 131 rv = apr_socket_connect(sock, sockAddr); 134 apr_socket_close(sock); [all...] |
/macosx-10.9.5/apr-30/apr/apr/test/ |
H A D | testsock.c | 109 apr_socket_t *sock; local 114 rv = apr_socket_create(&sock, sa->family, SOCK_STREAM, APR_PROTO_TCP, p); 117 rv = apr_socket_opt_set(sock, APR_SO_REUSEADDR, 1); 120 rv = apr_socket_bind(sock, sa); 124 rv = apr_socket_listen(sock, 5); 127 return sock; 133 apr_socket_t *sock = setup_socket(tc); local 135 if (!sock) return; 137 rv = apr_socket_close(sock); 144 apr_socket_t *sock; local 176 apr_socket_t *sock; local 210 apr_socket_t *sock; local 271 apr_socket_t *sock; local [all...] |
/macosx-10.9.5/bind9-45.100/bind9/bin/tests/ |
H A D | sock_test.c | 47 isc_socket_t *sock; local 50 sock = event->ev_sender; 53 printf("my_send: %s task %p\n\t(sock %p, base %p, length %d, n %d, " 55 (char *)(event->ev_arg), task, sock, 60 isc_socket_detach(&sock); 71 isc_socket_t *sock; local 77 sock = event->ev_sender; 80 printf("Socket %s (sock %p, base %p, length %d, n %d, result %d)\n", 81 (char *)(event->ev_arg), sock, 97 isc_socket_detach(&sock); 131 isc_socket_t *sock; local 157 isc_socket_t *sock; local 240 isc_socket_t *sock = event->ev_arg; local [all...] |
/macosx-10.9.5/bootp-268.1/IPConfiguration.bproj/ |
H A D | RTADVSocket.c | 251 RTADVSocketRef sock; local 253 sock = dynarray_element(&S_globals->sockets, i); 254 if_p = RTADVSocketGetInterface(sock); 256 return (sock); 456 RTADVSocketRef sock; local 458 sock = RTADVSocketFind(if_index); 459 if (sock == NULL) { 462 if (sock->receive_func != NULL) { 466 (*sock->receive_func)(sock 589 RTADVSocketGetInterface(RTADVSocketRef sock) argument 595 RTADVSocketInitTXBuf(RTADVSocketRef sock, uint32_t * txbuf, bool lladdr_ok) argument 626 RTADVSocketRef sock; local 656 RTADVSocketRef sock = (RTADVSocketRef)arg; local 666 RTADVSocketRef sock = *sock_p; local 689 RTADVSocketCloseSocket(RTADVSocketRef sock) argument 719 RTADVSocketOpenSocket(RTADVSocketRef sock) argument 762 RTADVSocketEnableReceive(RTADVSocketRef sock, RTADVSocketReceiveFuncPtr func, void * arg1, void * arg2) argument 777 RTADVSocketDisableReceive(RTADVSocketRef sock) argument 843 RTADVSocketSendSolicitation(RTADVSocketRef sock, bool lladdr_ok) argument 878 RTADVSocketRef sock; member in struct:__anon6715 [all...] |
/macosx-10.9.5/CPANInternal-140/HTTP-Proxy/t/ |
H A D | Utils.pm | 97 my $sock = IO::Socket::INET->new( 104 print $sock "GET $url HTTP/1.0\015\012", 106 my $content = join "", <$sock>; 109 close $sock or warn "close: $!";
|
/macosx-10.9.5/CPANInternal-140/HTTP-Proxy-0.25/t/ |
H A D | Utils.pm | 97 my $sock = IO::Socket::INET->new( 104 print $sock "GET $url HTTP/1.0\015\012", 106 my $content = join "", <$sock>; 109 close $sock or warn "close: $!";
|