/macosx-10.10.1/apr-32/apr/apr/test/ |
H A D | testsockets.c | 28 apr_socket_t *sock = NULL; local 31 rv = apr_socket_create(&sock, APR_INET, SOCK_STREAM, 0, p); 33 ABTS_PTR_NOTNULL(tc, sock); 35 rv = apr_socket_type_get(sock, &type); 39 apr_socket_close(sock); 45 apr_socket_t *sock = NULL; local 48 rv = apr_socket_create(&sock, APR_INET, SOCK_DGRAM, 0, p); 50 ABTS_PTR_NOTNULL(tc, sock); 52 rv = apr_socket_type_get(sock, &type); 56 apr_socket_close(sock); 63 apr_socket_t *sock = NULL; local 78 apr_socket_t *sock = NULL; local 95 apr_socket_t *sock = NULL; local [all...] |
/macosx-10.10.1/Heimdal-398.1.2/appl/test/ |
H A D | gss_common.h | 36 void write_token (int sock, gss_buffer_t buf); 37 void read_token (int sock, gss_buffer_t buf);
|
H A D | uu_server.c | 40 proto (int sock, const char *service) argument 54 if (getsockname (sock, (struct sockaddr *)&local, &addrlen) < 0 59 if (getpeername (sock, (struct sockaddr *)&remote, &addrlen) < 0 82 status = krb5_read_message(context, &sock, &client_name); 94 status = krb5_read_message(context, &sock, &in_creds.second_ticket); 113 &sock, 141 status = krb5_read_message(context, &sock, &packet); 156 status = krb5_read_message(context, &sock, &packet); 177 int sock, sock2; local 181 sock [all...] |
H A D | nt_gss_server.c | 68 proto (int sock, const char *service) argument 80 if (getsockname (sock, (struct sockaddr *)&local, &addrlen) < 0 85 if (getpeername (sock, (struct sockaddr *)&remote, &addrlen) < 0 93 nt_read_token (sock, input_token); 109 nt_write_token (sock, output_token); 146 nt_write_token (sock, output_token); 150 nt_write_token (sock, output_token); 158 int sock, sock2; local 162 sock = socket (AF_INET, SOCK_STREAM, 0); 163 if (sock < [all...] |
H A D | tcp_client.c | 40 proto (int sock, const char *hostname, const char *service) argument 55 &sock); 69 &sock, 99 if (krb5_net_write (context, &sock, &net_len, 4) != 4) 101 if (krb5_net_write (context, &sock, packet.data, len) != len) 120 if (krb5_net_write (context, &sock, &net_len, 4) != 4) 122 if (krb5_net_write (context, &sock, packet.data, len) != len)
|
/macosx-10.10.1/OpenLDAP-499.27/OpenLDAP/tests/data/ |
H A D | ndb.conf | 19 dbsocket /tmp/mysql.sock
|
/macosx-10.10.1/dcerpc-61/dcerpc/ncklib/ |
H A D | comsoc_bsd.h | 116 rpc_socket_basic_t *sock 121 rpc_socket_basic_t sock
|
H A D | comsoc.h | 144 rpc_socket_t sock, 157 rpc_socket_t sock, 164 rpc_socket_t sock, 171 rpc_socket_t sock 176 rpc_socket_t sock, 182 rpc_socket_t sock, 189 rpc_socket_t sock, 196 rpc_socket_t sock, 202 rpc_socket_t sock, 211 rpc_socket_t sock, [all...] |
/macosx-10.10.1/pyobjc-45/2.5/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.10.1/tcl-105/tcl84/tcl/generic/ |
H A D | tclIOSock.c | 91 TclSockMinimumBuffers(sock, size) 92 int sock; /* Socket file descriptor */ 99 getsockopt(sock, SOL_SOCKET, SO_SNDBUF, (char *)¤t, &len); 102 setsockopt(sock, SOL_SOCKET, SO_SNDBUF, (char *)&size, len); 105 getsockopt(sock, SOL_SOCKET, SO_RCVBUF, (char *)¤t, &len); 108 setsockopt(sock, SOL_SOCKET, SO_RCVBUF, (char *)&size, len);
|
/macosx-10.10.1/xnu-2782.1.97/tools/tests/libMicro/ |
H A D | getsockname.c | 53 static int sock = -1; variable 70 sock = socket(AF_INET, SOCK_STREAM, 0); 71 if (sock == -1) { 76 if (setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, 95 if (bind(sock, (struct sockaddr *)&adds, 119 if (getsockname(sock, (struct sockaddr *)&adds, &size) == -1)
|
/macosx-10.10.1/xnu-2782.1.97/tools/tests/libMicro/apple/ |
H A D | lmbench_select_tcp.c | 86 int tcp_accept(int sock, int rdwr); 87 void sock_optimize(int sock, int flags); 106 int sock; member in struct:__anon15388 171 ts->sock = tcp_server(TCP_SELECT, SOCKOPT_REUSE); 172 if (ts->sock <= 0) { 182 int newsock = tcp_accept(ts->sock, SOCKOPT_NONE); 201 tcp_accept(int sock, int rdwr) argument 211 if ((newsock = accept(sock, (struct sockaddr*)&s, &namelen)) < 0) { 225 sock_optimize(int sock, int flags) argument 230 while (setsockopt(sock, SOL_SOCKE 281 int sock; local 336 int sock; local [all...] |
/macosx-10.10.1/Security-57031.1.35/Security/libsecurity_ssl/sslViewer/ |
H A D | ioSock.c | 171 int sock = 0; local 196 sock = socket(AF_INET, SOCK_STREAM, 0); 201 if (connect(sock, (struct sockaddr *) &addr, sizeof(struct sockaddr_in)) != 0) 208 int rtn = fcntl(sock, F_SETFL, O_NONBLOCK); 217 *socketNo = (otSocket)sock; 233 int sock; local 235 sock = socket(AF_INET, SOCK_STREAM, 0); 236 if(sock < 1) { 242 int err = setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, &reuse, sizeof(reuse)); 259 if (bind(sock, (struc 314 int sock; local 347 endpointShutdown( otSocket sock) argument 366 int sock = (int)((long)connection); local 450 int sock = (int)((long)connection); local [all...] |
/macosx-10.10.1/ntp-92/lib/isc/include/isc/ |
H A D | socket.h | 345 isc_socket_cancel(isc_socket_t *sock, isc_task_t *task, 377 isc_socket_shutdown(isc_socket_t *sock, unsigned int how); 401 isc_socket_attach(isc_socket_t *sock, isc_socket_t **socketp); 444 isc_socket_open(isc_socket_t *sock); 464 * \li 'sock->type' is not isc_sockettype_fdwatch 472 isc_socket_close(isc_socket_t *sock); 492 * \li 'sock->type' is not isc_sockettype_fdwatch 499 isc_socket_bind(isc_socket_t *sock, isc_sockaddr_t *addressp, 521 isc_socket_filter(isc_socket_t *sock, const char *filter); 528 isc_socket_listen(isc_socket_t *sock, unsigne [all...] |
/macosx-10.10.1/ruby-106/ruby/lib/net/http/ |
H A D | generic_request.rb | 119 def exec(sock, ver, path) #:nodoc: internal use only 130 send_request_with_body sock, ver, path, @body 132 send_request_with_body_stream sock, ver, path, @body_stream 134 send_request_with_body_data sock, ver, path, @body_data 136 write_header sock, ver, path 160 def initialize(sock) 161 @sock = sock 167 @sock.write("#{buf.bytesize.to_s(16)}\r\n") 168 rv = @sock [all...] |
/macosx-10.10.1/configd-699.1.5/SystemConfiguration.fproj/ |
H A D | SCDNotifierInformViaFD.c | 55 int sock; local 79 if ((sock = socket(AF_UNIX, SOCK_STREAM, 0)) == -1) { 105 if (bind(sock, (struct sockaddr *)&un, sizeof(un)) == -1) { 109 (void) close(sock); 113 if (listen(sock, 0) == -1) { 117 (void) close(sock); 148 (void) close(sock); 152 *fd = accept(sock, 0, 0); 156 (void) close(sock); 159 (void) close(sock); [all...] |
/macosx-10.10.1/cups-408/cups/cups/ |
H A D | getifaddrs.c | 36 int sock; /* Socket */ local 62 if ((sock = socket(AF_INET, SOCK_DGRAM, 0)) < 0) 72 if (ioctl(sock, SIOCGIFCONF, &conf) < 0) 78 close(sock); 114 if (ioctl(sock, SIOCGIFFLAGS, &request) < 0) 127 close(sock); 147 if (!ioctl(sock, SIOCGIFNETMASK, &request)) 169 if (!ioctl(sock, SIOCGIFBRDADDR, &request)) 187 if (!ioctl(sock, SIOCGIFDSTADDR, &request)) 200 close(sock); [all...] |
/macosx-10.10.1/tcl-105/tcl_ext/tcllib/tcllib/modules/transfer/ |
H A D | ddest.tcl | 30 method receive {sock done} {} 77 method receive {sock done} { 79 set old [fconfigure $sock -blocking] 80 fconfigure $sock -blocking 0 81 fileevent $sock readable \ 82 [mymethod Read $sock $old $done] 86 method Read {sock oldblock done} { 87 set chunk [read $sock] 95 if {[eof $sock]} { 97 fileevent $sock readabl [all...] |
/macosx-10.10.1/apache-793/httpd/modules/proxy/ |
H A D | ajp_link.c | 21 apr_status_t ajp_ilink_send(apr_socket_t *sock, ajp_msg_t *msg) argument 35 status = apr_socket_send(sock, buf, &written); 49 static apr_status_t ilink_read(apr_socket_t *sock, apr_byte_t *buf, argument 58 status = apr_socket_recv(sock, (char *)(buf + rdlen), &length); 74 apr_status_t ajp_ilink_receive(apr_socket_t *sock, ajp_msg_t *msg) argument 82 status = ilink_read(sock, msg->buf, hlen); 98 status = ilink_read(sock, msg->buf + hlen, blen);
|
/macosx-10.10.1/Heimdal-398.1.2/appl/kx/ |
H A D | kxd.c | 106 * Prepare to receive a connection on `sock'. 110 recv_conn (int sock, kx_context *kc, argument 132 if (getsockname (sock, kc->thisaddr, &addrlen) < 0) { 139 if (getpeername (sock, kc->thataddr, &addrlen) < 0) { 150 if (net_read (sock, msg, 4) != 4) { 156 if (ret && recv_v5_auth (kc, sock, msg) == 0) 165 len = kx_read (kc, sock, msg, sizeof(msg)); 172 fatal(kc, sock, "Bad message"); 175 fatal(kc, sock, "user"); 179 fatal(kc, sock, "use 280 passive_session(kx_context *kc, int fd, int sock, int cookiesp) argument 293 active_session(kx_context *kc, int fd, int sock, int cookiesp) argument 311 int sock, sock2, port; local 446 doit_passive(kx_context *kc, int sock, int flags, int dispnr, int nsockets, struct x_socket *sockets, int tcp_flag) argument 632 doit_active(kx_context *kc, int sock, int flags, int tcp_flag) argument 680 doit(int sock, int tcp_flag) argument [all...] |
/macosx-10.10.1/ruby-106/ruby/ext/socket/ |
H A D | basicsocket.c | 28 VALUE sock = rsock_init_sock(rb_obj_alloc(klass), NUM2INT(fd)); local 30 GetOpenFile(sock, fptr); 32 return sock; 63 bsock_shutdown(int argc, VALUE *argv, VALUE sock) argument 69 if (rb_safe_level() >= 4 && !OBJ_TAINTED(sock)) { 81 GetOpenFile(sock, fptr); 99 bsock_close_read(VALUE sock) argument 103 if (rb_safe_level() >= 4 && !OBJ_TAINTED(sock)) { 106 GetOpenFile(sock, fptr); 109 return rb_io_close(sock); 132 bsock_close_write(VALUE sock) argument 207 bsock_setsockopt(int argc, VALUE *argv, VALUE sock) argument 317 bsock_getsockopt(VALUE sock, VALUE lev, VALUE optname) argument 357 bsock_getsockname(VALUE sock) argument 388 bsock_getpeername(VALUE sock) argument 478 bsock_local_address(VALUE sock) argument 512 bsock_remote_address(VALUE sock) argument 544 rsock_bsock_send(int argc, VALUE *argv, VALUE sock) argument 593 bsock_do_not_reverse_lookup(VALUE sock) argument 614 bsock_do_not_reverse_lookup_set(VALUE sock, VALUE state) argument 649 bsock_recv(int argc, VALUE *argv, VALUE sock) argument 700 bsock_recv_nonblock(int argc, VALUE *argv, VALUE sock) argument [all...] |
/macosx-10.10.1/tcl-105/tcl_ext/tclvfs/tclvfs/http2.6/ |
H A D | http.tcl | 74 foreach {url sock} [array get socketmap] { 75 catch {close $sock} 221 CloseSocket $state(sock) $token 266 Log "Closing connection $conn_id (sock $socketmap($conn_id))" 290 catch {fileevent $state(sock) readable {}} 291 catch {fileevent $state(sock) writable {}} 574 set sock $socketmap($state(socketinfo)) 575 Log "reusing socket $sock for $state(socketinfo)" 576 catch {fileevent $sock writable {}} 577 catch {fileevent $sock readabl [all...] |
/macosx-10.10.1/Heimdal-398.1.2/lib/kadm5/ |
H A D | send_recv.c | 44 krb5_storage *sock; local 46 assert(context->sock != -1); 62 sock = krb5_storage_from_fd(context->sock); 63 if(sock == NULL) { 69 ret = krb5_store_data(sock, out); 72 krb5_storage_free(sock); 82 krb5_storage *sock; local 84 sock = krb5_storage_from_fd(context->sock); [all...] |
/macosx-10.10.1/postfix-255/postfix/src/util/ |
H A D | inet_listen.c | 87 int sock; local 140 if ((sock = socket(res->ai_family, res->ai_socktype, 0)) < 0) 145 && setsockopt(sock, IPPROTO_IPV6, IPV6_V6ONLY, 150 if (setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, 153 if (bind(sock, res->ai_addr, res->ai_addrlen) < 0) { 159 non_blocking(sock, block_mode); 161 set_inet_windowsize(sock, inet_windowsize); 162 if (listen(sock, backlog) < 0) 164 return (sock);
|
/macosx-10.10.1/ruby-106/ruby/test/socket/ |
H A D | test_basicsocket.rb | 9 sock = Socket.new(Socket::AF_INET, Socket::SOCK_STREAM, 0) 10 yield sock 12 assert_raise(IOError) {sock.close} 52 inet_stream do |sock| 53 s = sock 66 inet_stream do |sock| 67 s = sock 81 inet_stream do |sock| 82 s = sock
|