Searched refs:TCPSocket (Results 1 - 25 of 41) sorted by relevance

12

/macosx-10.9.5/ruby-104/ruby/sample/
H A Dclnt.rb13 s = TCPSocket.open(host, ARGV.shift)
H A Ddualstack-fetch.rb4 # TCPSocket is using getaddrinfo() internally, so there should be no problem.
39 c = TCPSocket.new(host, port)
/macosx-10.9.5/ruby-104/ruby/test/socket/
H A Dtest_tcp.rb17 sock = TCPSocket.open(addr[3], addr[1])
32 sock = TCPSocket.open(addr[3], addr[1])
42 end if defined?(TCPSocket)
/macosx-10.9.5/ruby-104/ruby/test/webrick/
H A Dtest_server.rb17 TCPSocket.open(addr, port){|sock|
42 TCPSocket.open(addr, port) { |sock| sock << "foo\n" }
63 TCPSocket.open(addr, port){|sock| (sock << "foo\n").gets }
64 TCPSocket.open(addr, port){|sock| (sock << "foo\n").gets }
65 TCPSocket.open(addr, port){|sock| (sock << "foo\n").gets }
H A Dtest_cgi.rb94 sock = TCPSocket.new(addr, port)
115 res = TCPSocket.open(addr, port) {|sock|
129 res = TCPSocket.open(addr, port) {|sock|
/macosx-10.9.5/ruby-104/ruby/lib/
H A Dresolv-replace.rb17 class TCPSocket < IPSocket class
67 class SOCKSSocket < TCPSocket
/macosx-10.9.5/ruby-104/ruby/sample/openssl/
H A Decho_cli.rb27 s = TCPSocket.new(host, port)
/macosx-10.9.5/ruby-104/ruby/test/openssl/
H A Dtest_ssl_session.rb34 sock = TCPSocket.new '127.0.0.1', port
45 sock = TCPSocket.new("127.0.0.1", port)
156 sock = TCPSocket.new("127.0.0.1", port)
242 sock = TCPSocket.new("127.0.0.1", port)
291 sock = TCPSocket.new("127.0.0.1", port)
347 sock = TCPSocket.new("127.0.0.1", port)
H A Dtest_ssl.rb48 sock = TCPSocket.new("127.0.0.1", port)
55 sock = TCPSocket.new("127.0.0.1", port)
112 sock = TCPSocket.new("127.0.0.1", port)
160 sock = TCPSocket.new("127.0.0.1", port)
187 sock = TCPSocket.new("127.0.0.1", port)
206 sock = TCPSocket.new("127.0.0.1", port)
213 sock = TCPSocket.new("127.0.0.1", port)
225 sock = TCPSocket.new("127.0.0.1", port)
241 sock = TCPSocket.new("127.0.0.1", port)
261 sock = TCPSocket
[all...]
H A Dtest_pair.rb24 s = TCPSocket.new(host, port)
199 sock1 = TCPSocket.new(host, port)
/macosx-10.9.5/mDNSResponder-522.92.1/mDNSShared/
H A Ddnsextd.h112 TCPSocket * sock;
H A Ddnsextd.c115 TCPSocket *sock; // socket connected to client
238 mDNSlocal mStatus AddSourceToEventLoop( DaemonInfo * self, TCPSocket *sock, EventCallback callback, void *context )
270 mDNSlocal mStatus RemoveSourceFromEventLoop( DaemonInfo * self, TCPSocket *sock )
296 mDNSlocal TCPSocket *ConnectToServer(DaemonInfo *d)
305 TCPSocket *sock = mDNSPlatformTCPSocket( NULL, 0, &port, mDNSfalse );
323 mDNSlocal int MySend(TCPSocket *sock, const void *msg, int len)
351 mDNSlocal int SendPacket(TCPSocket *sock, PktMsg *pkt)
368 static int my_recv(TCPSocket *sock, void *const buf, const int len, mDNSBool * closed)
415 TCPSocket * sock,
910 TCPSocket *soc
[all...]
/macosx-10.9.5/mDNSResponder-522.92.1/mDNSWindows/
H A DmDNSWin32.h152 extern mStatus TCPAddSocket( mDNS * const inMDNS, TCPSocket *sock );
H A DmDNSWin32.c167 mDNSlocal void TCPCloseSocket( TCPSocket * socket );
948 TCPSocket *
957 TCPSocket * sock = NULL;
970 sock = (TCPSocket *) malloc( sizeof( TCPSocket ) );
972 mDNSPlatformMemZero( sock, sizeof( TCPSocket ) );
1030 TCPSocket * sock,
1086 mDNSexport TCPSocket *mDNSPlatformTCPAccept( TCPSocketFlags flags, int fd )
1088 TCPSocket * sock = NULL;
1093 sock = malloc( sizeof( TCPSocket ) );
[all...]
/macosx-10.9.5/ruby-104/ruby/test/net/http/
H A Dutils.rb71 TCPSocket.open(config('host'), config('port')).close
/macosx-10.9.5/mDNSResponder-522.92.1/mDNSMacOS9/
H A DmDNSMacOS9.c204 mDNSexport TCPSocket *mDNSPlatformTCPSocket(mDNS * const m, TCPSocketFlags flags, mDNSIPPort * port)
212 mDNSexport TCPSocket *mDNSPlatformTCPAccept(TCPSocketFlags flags, int sd)
219 mDNSexport int mDNSPlatformTCPGetFD(TCPSocket *sock)
225 mDNSexport mStatus mDNSPlatformTCPConnect(TCPSocket *sock, const mDNSAddr * dst, mDNSOpaque16 dstport, mDNSInterfaceID InterfaceID,
237 mDNSexport void mDNSPlatformTCPCloseConnection(TCPSocket *sd)
242 mDNSexport long mDNSPlatformReadTCP(TCPSocket *sock, void *buf, unsigned long buflen, mDNSBool *closed)
251 mDNSexport long mDNSPlatformWriteTCP(TCPSocket *sock, const char *msg, unsigned long len)
/macosx-10.9.5/mDNSResponder-522.92.1/mDNSMacOSX/
H A DDNSProxySupport.c33 TCPSocket sock;
101 TCPSocket *sock = &ti->sock;
172 // We pass sock for the TCPSocket and the "ti" for context as that's what we want to free at the end.
201 LogMsg("ProxyTCPAccept: cannot allocate TCPSocket");
206 TCPSocket *sock = &ti->sock;
516 TCPSocket *sock;
H A DmDNSMacOSX.h215 TCPSocket TCPProxy;
/macosx-10.9.5/mDNSResponder-522.92.1/mDNSWindows/SystemService/
H A DService.c2017 TCPSocket *tcpSock = ( TCPSocket* ) context;
2044 TCPSocket * sock;
2046 sock = malloc( sizeof( TCPSocket ) );
2048 mDNSPlatformMemZero( sock, sizeof( TCPSocket ) );
2078 TCPSocket * sock;
2084 sock = ( TCPSocket* ) platform_data;
2118 TCPSocket * sock;
2121 sock = ( TCPSocket* ) platform_data;
/macosx-10.9.5/ruby-104/ruby/test/net/ftp/
H A Dtest_ftp.rb331 conn = TCPSocket.new(host, port)
396 conn = TCPSocket.new(host, port)
499 conn = TCPSocket.new(host, port)
554 conn = TCPSocket.new(host, port)
651 conn = TCPSocket.new(host, port)
/macosx-10.9.5/ruby-104/ruby/lib/net/
H A Dtelnet.rb23 # socket object (by default, a +TCPSocket+, but can be set by the
347 @sock = TCPSocket.open(@options["Host"], @options["Port"])
350 @sock = TCPSocket.open(@options["Host"], @options["Port"])
/macosx-10.9.5/mDNSResponder-522.92.1/mDNSPosix/
H A DmDNSPosix.c319 mDNSexport TCPSocket *mDNSPlatformTCPSocket(mDNS * const m, TCPSocketFlags flags, mDNSIPPort * port, mDNSBool useBackgroundTrafficClass)
328 mDNSexport TCPSocket *mDNSPlatformTCPAccept(TCPSocketFlags flags, int sd)
335 mDNSexport int mDNSPlatformTCPGetFD(TCPSocket *sock)
341 mDNSexport mStatus mDNSPlatformTCPConnect(TCPSocket *sock, const mDNSAddr *dst, mDNSOpaque16 dstport, domainname *hostname, mDNSInterfaceID InterfaceID,
354 mDNSexport void mDNSPlatformTCPCloseConnection(TCPSocket *sock)
359 mDNSexport long mDNSPlatformReadTCP(TCPSocket *sock, void *buf, unsigned long buflen, mDNSBool * closed)
368 mDNSexport long mDNSPlatformWriteTCP(TCPSocket *sock, const char *msg, unsigned long len)
/macosx-10.9.5/ruby-104/ruby/lib/webrick/
H A Dhttpproxy.rb154 os = TCPSocket.new(host, port) # origin server
/macosx-10.9.5/ruby-104/ruby/test/rexml/
H A Dtest_sax.rb226 socket = TCPSocket.new('127.0.0.1', server.addr[1])
/macosx-10.9.5/mDNSResponder-522.92.1/mDNSCore/
H A DmDNSEmbeddedAPI.h473 typedef struct TCPSocket_struct TCPSocket; typedef in typeref:struct:TCPSocket_struct
512 TCPSocket *sock;
1235 TCPSocket *sock;
3155 typedef void (*TCPConnectionCallback)(TCPSocket *sock, void *context, mDNSBool ConnectionEstablished, mStatus err);
3156 extern TCPSocket *mDNSPlatformTCPSocket(mDNS *const m, TCPSocketFlags flags, mDNSIPPort *port, mDNSBool useBackgroundTrafficClass); // creates a TCP socket
3157 extern TCPSocket *mDNSPlatformTCPAccept(TCPSocketFlags flags, int sd);
3158 extern int mDNSPlatformTCPGetFD(TCPSocket *sock);
3159 extern mStatus mDNSPlatformTCPConnect(TCPSocket *sock, const mDNSAddr *dst, mDNSOpaque16 dstport, domainname *hostname,
3161 extern void mDNSPlatformTCPCloseConnection(TCPSocket *sock);
3162 extern long mDNSPlatformReadTCP(TCPSocket *soc
[all...]

Completed in 421 milliseconds

12