/macosx-10.10.1/curl-83.1.2/curl/lib/ |
H A D | pingpong.c | 86 curl_socket_t sock = conn->sock[FIRSTSOCKET]; local 113 rc = Curl_socket_ready(pp->sendleft?CURL_SOCKET_BAD:sock, /* reading */ 114 pp->sendleft?sock:CURL_SOCKET_BAD, /* writing */ 204 error = Curl_write(conn, conn->sock[FIRSTSOCKET], s, write_len, 465 socks[0] = conn->sock[FIRSTSOCKET]; 482 curl_socket_t sock = conn->sock[FIRSTSOCKET]; local 484 result = Curl_write(conn, sock, pp->sendthis + pp->sendsize -
|
/macosx-10.10.1/tcl-105/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.10.1/Security-57031.1.35/SecurityTests/clxutils/clAppUtils/ |
H A D | sslClient.cpp | 33 otSocket sock = 0; local 48 params->nonBlocking, &sock, &peerId); 81 ortn = SSLSetConnection(ctx, (SSLConnectionRef)sock); 202 if(sock) { 203 endpointShutdown(sock);
|
/macosx-10.10.1/Security-57031.1.35/SecurityTests/clxutils/threadTest/ |
H A D | sslPing.cpp | 204 otSocket sock = 0; local 216 ortn = MakeServerConnection(hostName, port, &sock, &peerId); 243 ortn = SSLSetConnection(ctx, (SSLConnectionRef)sock); 339 if(sock) { 340 endpointShutdown(sock);
|
/macosx-10.10.1/mDNSResponder-561.1.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:__anon10843 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.10.1/postfix-255/postfix/src/util/ |
H A D | inet_proto.c | 185 int sock; local 195 if ((sock = socket(PF_INET6, SOCK_STREAM, 0)) >= 0) { 196 close(sock); 206 if ((sock = socket(PF_INET, SOCK_STREAM, 0)) >= 0) { 207 close(sock);
|
/macosx-10.10.1/ruby-106/ruby/ext/socket/ |
H A D | socket.c | 39 sock_initialize(int argc, VALUE *argv, VALUE sock) argument 54 return rsock_init_sock(sock, fd); 297 sock_connect(VALUE sock, VALUE addr) argument 304 GetOpenFile(sock, fptr); 357 sock_connect_nonblock(VALUE sock, VALUE addr) argument 364 GetOpenFile(sock, fptr); 463 sock_bind(VALUE sock, VALUE addr) argument 468 GetOpenFile(sock, fptr); 546 rsock_sock_listen(VALUE sock, VALUE log) argument 553 GetOpenFile(sock, fpt 666 sock_recvfrom(int argc, VALUE *argv, VALUE sock) argument 734 sock_recvfrom_nonblock(int argc, VALUE *argv, VALUE sock) argument 754 sock_accept(VALUE sock) argument 819 sock_accept_nonblock(VALUE sock) argument 870 sock_sysaccept(VALUE sock) argument [all...] |
/macosx-10.10.1/ruby-106/ruby/lib/webrick/ |
H A D | httpserver.rb | 65 # Processes requests on +sock+ 67 def run(sock) 75 break if IO.select([sock], nil, nil, 0.5) 80 raise HTTPStatus::EOFError if sock.eof? 81 req.parse(sock) 110 res.send_response(sock)
|
/macosx-10.10.1/curl-83.1.2/curl/tests/server/ |
H A D | rtspd.c | 772 static int get_request(curl_socket_t sock, struct httprequest *req) argument 822 got = sread(sock, reqbuf + req->offset, req->cl); 824 got = sread(sock, reqbuf + req->offset, REQBUFSIZ-1 - req->offset); 883 static int send_doc(curl_socket_t sock, struct httprequest *req) argument 913 written = swrite(sock, STREAMTHIS, count); 1068 written = swrite(sock, buffer, num); 1093 written = swrite(sock, req->rtp_buffer + (req->rtp_buffersize - count), num); 1187 curl_socket_t sock = CURL_SOCKET_BAD; local 1283 sock = socket(AF_INET, SOCK_STREAM, 0); 1286 sock [all...] |
/macosx-10.10.1/CPANInternal-159.1/Log-Log4perl-1.40/t/ |
H A D | 042SyncApp.t | 199 my $sock = IO::Socket::INET->new( 206 die "Cannot start server: $!" unless defined $sock; 216 while(my $client = $sock->accept()) { 296 my $sock = IO::Socket::INET->new( 303 die "Cannot start server: $!" unless defined $sock; 311 while(my $client = $sock->accept()) {
|
/macosx-10.10.1/Heimdal-398.1.2/appl/kx/ |
H A D | kx.h | 162 int verify_and_remove_cookies (int fd, int sock, int cookiesp); 165 int suspicious_address (int sock, struct sockaddr *addr); 234 recv_v5_auth (kx_context *kc, int sock, u_char *buf);
|
/macosx-10.10.1/Security-57031.1.35/Security/tlsnke/tlsnketest/ |
H A D | st_test.c | 361 bool dtls, int sock, CFArrayRef certs, SSLProtocol proto, bool kernel) 370 require_noerr(TLSSocket_Attach(sock), out); 371 require_noerr(SSLSetRecordContext(ctx, (intptr_t) sock), out); 377 require_noerr(SSLSetConnection(ctx, (intptr_t)sock), out); 619 int sock; local 630 if ((sock = socket(AF_INET, SOCK_DGRAM, 0)) == -1) { 635 if (bind(sock, (struct sockaddr *)&server_addr, sizeof(struct sockaddr)) 643 sp[0]=sock; 646 sock = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); 647 if(sock< 360 make_ssl_ref(bool server, bool client_side_auth, bool dh_anonymous, bool dtls, int sock, CFArrayRef certs, SSLProtocol proto, bool kernel) argument [all...] |
/macosx-10.10.1/xnu-2782.1.97/bsd/sys/ |
H A D | kpi_socket.h | 514 @param sock The socket. 518 extern errno_t sock_setupcall(socket_t sock, sock_upcall callback, 531 @param sock The socket. 537 extern errno_t sock_setupcalls(socket_t sock, sock_upcall read_callback, 546 @param sock The socket. 552 extern errno_t sock_catchevents(socket_t sock, sock_evupcall event_callback, 558 @param sock The socket.
|
/macosx-10.10.1/mDNSResponder-561.1.1/mDNSWindows/SystemService/ |
H A D | Service.c | 129 static void CALLBACK UDSAcceptNotification( SOCKET sock, LPWSANETWORKEVENTS event, void *context ); 130 static void CALLBACK UDSReadNotification( SOCKET sock, LPWSANETWORKEVENTS event, void *context ); 1407 SocketRef sock; local 1441 sock = socket( AF_INET, SOCK_DGRAM, IPPROTO_UDP ); 1442 err = translate_errno( IsValidSocket( sock ), errno_compat(), kUnknownErr ); 1444 gInterfaceListChangedSocket = sock; 1450 err = ioctlsocket( sock, FIONBIO, ¶m ); 1456 err = WSAIoctl( sock, SIO_ADDRESS_LIST_CHANGE, &inBuffer, 0, &outBuffer, 0, &outSize, NULL, NULL ); 1462 err = mDNSPollRegisterSocket( sock, FD_ADDRESS_LIST_CHANGE, InterfaceListNotification, NULL ); 1997 UDSAcceptNotification( SOCKET sock, LPWSANETWORKEVENT argument 2015 UDSReadNotification( SOCKET sock, LPWSANETWORKEVENTS event, void *context ) argument 2044 TCPSocket * sock; local 2078 TCPSocket * sock; local 2118 TCPSocket * sock; local [all...] |
/macosx-10.10.1/OpenSSH-189/openssh/ |
H A D | nchan.c | 495 if (c->sock != -1) { 496 if (shutdown(c->sock, SHUT_WR) < 0) 499 c->self, c->sock, strerror(errno)); 513 if (c->sock != -1) { 515 * shutdown(sock, SHUT_READ) may return ENOTCONN if the 519 if (shutdown(c->sock, SHUT_RD) < 0 523 c->self, c->sock, c->istate, c->ostate,
|
/macosx-10.10.1/dcerpc-61/dcerpc/ncklib/ |
H A D | dgutl.c | 385 rpc_socket_t sock, 415 RPC_DG_SOCKET_SENDMSG_OOL(sock, iov, iovlen, addr, &sentcc, &serr); 441 rpc_socket_t sock, 472 rpc__dg_xmit_pkt(sock, addr, iov, 1, &b); 486 rpc_socket_t sock, 535 rpc__dg_xmit_pkt(sock, addr, iov, 2, &b); 383 rpc__dg_xmit_pkt( rpc_socket_t sock, rpc_addr_p_t addr, rpc_socket_iovec_p_t iov, int iovlen, boolean *b ) argument 439 rpc__dg_xmit_hdr_only_pkt( rpc_socket_t sock, rpc_addr_p_t addr, rpc_dg_pkt_hdr_p_t hdrp, rpc_dg_ptype_t ptype ) argument 484 rpc__dg_xmit_error_body_pkt( rpc_socket_t sock, rpc_addr_p_t addr, rpc_dg_pkt_hdr_p_t hdrp, rpc_dg_ptype_t ptype, unsigned32 errst ) argument
|
H A D | npnaf_linux.c | 222 rpc_socket_t sock, 247 err = rpc__socket_inq_endpoint(sock, (rpc_addr_p_t) &loc_np_addr); 216 rpc__np_desc_inq_addr( rpc_protseq_id_t protseq_id, rpc_socket_t sock, rpc_addr_vector_p_t *rpc_addr_vec, unsigned32 *status ) argument
|
/macosx-10.10.1/configd-699.1.5/SystemConfiguration.fproj/ |
H A D | LinkConfiguration.c | 106 int sock = -1; local 115 sock = socket(AF_INET, SOCK_DGRAM, 0); 116 if (sock == -1) { 122 if (ioctl(sock, SIOCGIFCAP, (caddr_t)&ifr) == -1) { 143 (void)close(sock); 404 int sock = -1; local 414 sock = socket(AF_INET, SOCK_DGRAM, 0); 415 if (sock == -1) { 420 if (ioctl(sock, SIOCGIFMEDIA, (caddr_t)ifm) == -1) { 427 if (ioctl(sock, SIOCGIFMEDI 1009 int sock = -1; local [all...] |
/macosx-10.10.1/curl-83.1.2/curl/tests/libtest/ |
H A D | lib500.c | 41 static int tst_closesocket(void *clientp, curl_socket_t sock) argument 45 return sclose(sock);
|
/macosx-10.10.1/ipsec-286.1.1/ipsec-tools/racoon/ |
H A D | vpn_control.c | 222 int sock; local 235 sock_elem->sock = accept(lcconf->sock_vpncontrol, (struct sockaddr *)&from, &fromlen); 236 if (sock_elem->sock < 0) { 244 sock_elem->source = dispatch_source_create(DISPATCH_SOURCE_TYPE_READ, sock_elem->sock, 0, dispatch_get_main_queue()); 254 sock = sock_elem->sock; 259 close(sock); 279 while ((len = recv(elem->sock, (char *)&hdr, sizeof(hdr), MSG_PEEK)) < 0) { 310 while ((len = recv(elem->sock, combuf, ntohs(hdr.len) + sizeof(hdr), 0)) < 0) { 587 if (vpncontrol_reply(elem->sock, combu 896 int sock; local [all...] |
/macosx-10.10.1/remote_cmds-47/timed.tproj/timed.tproj/ |
H A D | globals.h | 58 extern int sock; 147 extern int sock;
|
/macosx-10.10.1/xnu-2782.1.97/tools/tests/libMicro/ |
H A D | libmicro.h | 247 int tcp_accept(int sock, int rdwr); 249 void sock_optimize(int sock, int rdwr);
|
/macosx-10.10.1/ruby-106/ruby/lib/ |
H A D | resolv.rb | 702 socks.each {|sock| sock.close } 707 def initialize(msg, data, sock) 710 @sock = sock 730 sock = UDPSocket.new(af) 734 sock.do_not_reverse_lookup = true 735 sock.fcntl(Fcntl::F_SETFD, Fcntl::FD_CLOEXEC) if defined? Fcntl::F_SETFD 736 DNS.bind_random_port(sock, bind_host) 737 @socks << sock [all...] |
/macosx-10.10.1/mDNSResponder-561.1.1/mDNSMacOSX/ |
H A D | mDNSMacOSX.c | 2180 mDNSlocal void doTcpSocketCallback(TCPSocket *sock) argument 2182 mDNSBool c = !sock->connected; 2183 sock->connected = mDNStrue; 2184 sock->callback(sock, sock->context, c, sock->err); 2216 mDNSlocal OSStatus tlsSetupSock(TCPSocket *sock, SSLProtocolSide pside, SSLConnectionType ctype) argument 2220 sock->tlsContext = SSLCreateContext(kCFAllocatorDefault, pside, ctype); 2221 if (!sock 2276 doSSLHandshake(TCPSocket *sock) argument 2330 doSSLHandshake(TCPSocket *sock) argument 2375 spawnSSLHandshake(TCPSocket* sock) argument 2394 TCPSocket *sock = context; local 2571 SetupTCPSocket(TCPSocket *sock, u_short sa_family, mDNSIPPort *port, mDNSBool useBackgroundTrafficClass) argument 2645 TCPSocket *sock = mallocL("TCPSocket/mDNSPlatformTCPSocket", sizeof(TCPSocket)); local 2680 mDNSPlatformTCPConnect(TCPSocket *sock, const mDNSAddr *dst, mDNSOpaque16 dstport, domainname *hostname, mDNSInterfaceID InterfaceID, TCPConnectionCallback callback, void *context) argument 2793 TCPSocket *sock = mallocL("TCPSocket/mDNSPlatformTCPAccept", sizeof(TCPSocket)); local 2822 mDNSPlatformGetUDPPort(UDPSocket *sock) argument 2849 mDNSPlatformTCPCloseConnection(TCPSocket *sock) argument 2881 mDNSPlatformReadTCP(TCPSocket *sock, void *buf, unsigned long buflen, mDNSBool *closed) argument 2942 mDNSPlatformWriteTCP(TCPSocket *sock, const char *msg, unsigned long len) argument 2976 mDNSPlatformTCPGetFD(TCPSocket *sock) argument 3176 mDNSPlatformUDPClose(UDPSocket *sock) argument [all...] |