PageRenderTime 26ms queryFilters 0ms Sphinxql 57ms app.CodeModel.GetByIds 20ms findMatchingLines 70ms GetByIds 91ms meta 0ms repositoryFilters 10ms languageFilters 8ms sourceFilters 6ms

626,242 results for 'socket repo:mrtoniliu/QingtingCheat' (26 ms)

Source

Language

Repository

Makefile https://bitbucket.org/cointoss1973/linux-scalability-benchmarks | Makefile | 792 lines
430 uint32.h
431socket_mcloop6.o: socket/socket_mcloop6.c windoze.h socket.h uint16.h \
432 uint32.h haveip6.h
451socket_tcp6.o: socket/socket_tcp6.c socket.h uint16.h uint32.h ndelay.h
452socket_tcp6b.o: socket/socket_tcp6b.c windoze.h haveip6.h socket.h \
453 uint16.h uint32.h ndelay.h
453 uint16.h uint32.h ndelay.h
454socket_tryreservein.o: socket/socket_tryreservein.c windoze.h socket.h \
455 uint16.h uint32.h
579UNIX_OBJS=iopause.o ndelay_off.o ndelay_on.o winsock2errno.o 
580SOCKET_OBJS=fmt_ip4.o fmt_ip6.o fmt_ip6_flat.o fmt_ip6c.o fmt_ip6if.o fmt_ip6ifc.o init.o scan_ip4.o scan_ip6.o scan_ip6_flat.o scan_ip6if.o socket_accept4.o socket_accept6.o socket_bind4.o socket_bind4_reuse.o socket_bind6.o socket_bind6_reuse.o socket_broadcast.o socket_connect4.o socket_connect6.o socket_connected.o socket_deferaccept.o socket_getifidx.o socket_getifname.o socket_ip4loopback.o socket_listen.o socket_local4.o socket_local6.o socket_mchopcount6.o socket_mcjoin4.o socket_mcjoin6.o socket_mcleave4.o socket_mcleave6.o socket_mcloop4.o socket_mcloop6.o socket_mcttl4.o socket_noipv6.o socket_recv4.o socket_recv6.o socket_remote4.o socket_remote6.o socket_send4.o socket_send6.o socket_tcp4.o socket_tcp4b.o socket_tcp6.o socket_tcp6b.o socket_tryreservein.o socket_udp4.o socket_udp6.o socket_v4mappedprefix.o socket_v6any.o socket_v6loopback.o 
581BUFFER_OBJS=buffer_0.o buffer_0small.o buffer_1.o buffer_1small.o buffer_2.o buffer_close.o buffer_feed.o buffer_flush.o buffer_fromsa.o buffer_get.o buffer_get_new_token_sa.o buffer_get_new_token_sa_pred.o buffer_get_token.o buffer_get_token_pred.o buffer_get_token_sa.o buffer_get_token_sa_pred.o buffer_getc.o buffer_getline.o buffer_getline_sa.o buffer_getn.o buffer_getnewline_sa.o buffer_init.o buffer_init_free.o buffer_mmapread.o buffer_peek.o buffer_put.o buffer_put8long.o buffer_putalign.o buffer_puterror.o buffer_puterror2.o buffer_putflush.o buffer_putlong.o buffer_putlonglong.o buffer_putm_internal.o buffer_putm_internal_flush.o buffer_putnlflush.o buffer_puts.o buffer_putsa.o buffer_putsaflush.o buffer_putsalign.o buffer_putsflush.o buffer_putspace.o buffer_putulong.o buffer_putulonglong.o buffer_putxlong.o buffer_seek.o buffer_stubborn.o buffer_stubborn2.o buffer_tosa.o errmsg_iam.o errmsg_info.o errmsg_infosys.o errmsg_puts.o errmsg_warn.o errmsg_warnsys.o errmsg_write.o 
766
767socket_accept4.o socket_accept6.o socket_connected.o socket_local4.o \
768socket_local6.o socket_recv4.o socket_recv6.o socket_remote4.o \
GCDAsyncSocket.h https://bitbucket.org/cel/growl | C++ Header | 964 lines
189 * When a connection is accepted, a new instance of GCDAsyncSocket will be spawned to handle it,
190 * and the socket:didAcceptNewSocket: delegate method will be invoked.
191 * 
847 * This method is called immediately prior to socket:didAcceptNewSocket:.
848 * It optionally allows a listening socket to specify the socketQueue for a new accepted socket.
849 * If this method is not implemented, or returns NULL, the new accepted socket will create its own default queue.
863**/
864- (dispatch_queue_t)newSocketQueueForConnectionFromAddress:(NSData *)address onSocket:(GCDAsyncSocket *)sock;
865
875**/
876- (void)socket:(GCDAsyncSocket *)sock didAcceptNewSocket:(GCDAsyncSocket *)newSocket;
877
918**/
919- (NSTimeInterval)socket:(GCDAsyncSocket *)sock shouldTimeoutReadWithTag:(long)tag
920                                                                 elapsed:(NSTimeInterval)elapsed
test_ssl.py https://bitbucket.org/pmoore/cpython_sandbox | Python | 2,178 lines
386    def test_dealloc_warn(self):
387        ss = ssl.wrap_socket(socket.socket(socket.AF_INET))
388        r = repr(ss)
687            # this should fail because we have no verification certs
688            s = ssl.wrap_socket(socket.socket(socket.AF_INET),
689                                cert_reqs=ssl.CERT_REQUIRED)
694            # this should succeed because we specify the root cert
695            s = ssl.wrap_socket(socket.socket(socket.AF_INET),
696                                cert_reqs=ssl.CERT_REQUIRED,
776            ctx = ssl.SSLContext(ssl.PROTOCOL_SSLv23)
777            s = ctx.wrap_socket(socket.socket(socket.AF_INET))
778            s.connect(("svn.python.org", 443))
827            ctx.load_verify_locations(capath=BYTES_CAPATH)
828            s = ctx.wrap_socket(socket.socket(socket.AF_INET))
829            s.connect(("svn.python.org", 443))
socket.rst https://bitbucket.org/matthewlmcclure/cpython | Unknown | 1,436 lines
1227   PORT = 50007              # Arbitrary non-privileged port
1228   s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
1229   s.bind((HOST, PORT))
1245   PORT = 50007              # The same port as used by the server
1246   s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
1247   s.connect((HOST, PORT))
1335   # create a raw socket and bind it to the public interface
1336   s = socket.socket(socket.AF_INET, socket.SOCK_RAW, socket.IPPROTO_IP)
1337   s.bind((HOST, 0))
1354
1355    socket.socket(socket.AF_CAN, socket.SOCK_DGRAM, socket.CAN_BCM)
1356
1382   # create a raw socket and bind it to the 'vcan0' interface
1383   s = socket.socket(socket.AF_CAN, socket.SOCK_RAW, socket.CAN_RAW)
1384   s.bind(('vcan0',))
test_ssl.py https://bitbucket.org/matthewlmcclure/cpython | Python | 2,380 lines
769        with support.transient_internet("svn.python.org"):
770            s = ssl.wrap_socket(socket.socket(socket.AF_INET),
771                                cert_reqs=ssl.CERT_NONE)
778            # this should fail because we have no verification certs
779            s = ssl.wrap_socket(socket.socket(socket.AF_INET),
780                                cert_reqs=ssl.CERT_REQUIRED)
785            # this should succeed because we specify the root cert
786            s = ssl.wrap_socket(socket.socket(socket.AF_INET),
787                                cert_reqs=ssl.CERT_REQUIRED,
797        with support.transient_internet("svn.python.org"):
798            s = ssl.wrap_socket(socket.socket(socket.AF_INET),
799                                cert_reqs=ssl.CERT_REQUIRED,
1026            ctx.load_verify_locations(sha256_cert)
1027            s = ctx.wrap_socket(socket.socket(socket.AF_INET),
1028                                server_hostname="sha256.tbs-internet.com")
test_socket.py https://bitbucket.org/matthewlmcclure/cpython | Python | 4,976 lines
46    try:
47        s = socket.socket(socket.PF_CAN, socket.SOCK_RAW, socket.CAN_RAW)
48    except (AttributeError, OSError):
153    def setUp(self):
154        self.s = socket.socket(socket.PF_CAN, socket.SOCK_RAW, socket.CAN_RAW)
155        self.addCleanup(self.s.close)
1367        # most systems limit IFNAMSIZ to 16, take 1024 to be sure
1368        with socket.socket(socket.PF_CAN, socket.SOCK_RAW, socket.CAN_RAW) as s:
1369            self.assertRaisesRegex(OSError, 'interface name too long',
1374    def testLoopback(self):
1375        with socket.socket(socket.PF_CAN, socket.SOCK_RAW, socket.CAN_RAW) as s:
1376            for loopback in (0, 1):
1455    def testBCM(self):
1456        bcm = socket.socket(socket.PF_CAN, socket.SOCK_DGRAM, socket.CAN_BCM)
1457        self.addCleanup(bcm.close)
HttpSocketTest.php https://bitbucket.org/sommers/cs295.git | PHP | 1,736 lines
310/**
311 * Tests that HttpSocket::request (the heart of the HttpSocket) is working properly.
312 *
1407
1408		$r = $this->Socket->buildUri(array('host' => 'www.cakephp.org', 'path' => '/search', 'query' => array('q' => 'HttpSocket')));
1409		$this->assertEquals('http://www.cakephp.org/search?q=HttpSocket', $r);
1651/**
1652 * This tests asserts HttpSocket::reset() resets a HttpSocket instance to it's initial state (before Object::__construct
1653 * got executed)
1674/**
1675 * This tests asserts HttpSocket::reset(false) resets certain HttpSocket properties to their initial state (before
1676 * Object::__construct got executed).
1724		$this->skipIf(!extension_loaded('openssl'), 'OpenSSL is not enabled cannot test SSL.');
1725		$socket = new HttpSocket();
1726		try {
socket.rst https://bitbucket.org/python_mirrors/features-pep-433 | Unknown | 1,425 lines
1225   PORT = 50007              # Arbitrary non-privileged port
1226   s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
1227   s.bind((HOST, PORT))
1243   PORT = 50007              # The same port as used by the server
1244   s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
1245   s.connect((HOST, PORT))
1333   # create a raw socket and bind it to the public interface
1334   s = socket.socket(socket.AF_INET, socket.SOCK_RAW, socket.IPPROTO_IP)
1335   s.bind((HOST, 0))
1371   # create a raw socket and bind it to the 'vcan0' interface
1372   s = socket.socket(socket.AF_CAN, socket.SOCK_RAW, socket.CAN_RAW)
1373   s.bind(('vcan0',))
1400
1401   s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
1402   s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
test_ssl.py https://bitbucket.org/python_mirrors/features-pep-433 | Python | 2,180 lines
387    def test_dealloc_warn(self):
388        ss = ssl.wrap_socket(socket.socket(socket.AF_INET))
389        r = repr(ss)
695            # this should succeed because we specify the root cert
696            s = ssl.wrap_socket(socket.socket(socket.AF_INET),
697                                cert_reqs=ssl.CERT_REQUIRED,
777            ctx = ssl.SSLContext(ssl.PROTOCOL_SSLv23)
778            s = ctx.wrap_socket(socket.socket(socket.AF_INET))
779            s.connect(("svn.python.org", 443))
842        with support.transient_internet("svn.python.org"):
843            ss = ssl.wrap_socket(socket.socket(socket.AF_INET))
844            ss.connect(("svn.python.org", 443))
910                s.connect(remote)
911            with ssl.wrap_socket(socket.socket(socket.AF_INET),
912                                 cert_reqs=ssl.CERT_NONE, ciphers="DEFAULT") as s:
test_socket.py https://bitbucket.org/python_mirrors/features-pep-433 | Python | 4,894 lines
43    try:
44        s = socket.socket(socket.PF_CAN, socket.SOCK_RAW, socket.CAN_RAW)
45    except (AttributeError, OSError):
120    def setUp(self):
121        self.s = socket.socket(socket.PF_CAN, socket.SOCK_RAW, socket.CAN_RAW)
122        self.addCleanup(self.s.close)
1299        # most systems limit IFNAMSIZ to 16, take 1024 to be sure
1300        with socket.socket(socket.PF_CAN, socket.SOCK_RAW, socket.CAN_RAW) as s:
1301            self.assertRaisesRegex(OSError, 'interface name too long',
1306    def testLoopback(self):
1307        with socket.socket(socket.PF_CAN, socket.SOCK_RAW, socket.CAN_RAW) as s:
1308            for loopback in (0, 1):
1318        can_filter = struct.pack("=II", can_id, can_mask)
1319        with socket.socket(socket.PF_CAN, socket.SOCK_RAW, socket.CAN_RAW) as s:
1320            s.setsockopt(socket.SOL_CAN_RAW, socket.CAN_RAW_FILTER, can_filter)
HttpSocketTest.php https://bitbucket.org/omarsmak/html5-cloud-ide.git | PHP | 1,513 lines
210	public function tearDown() {
211		unset($this->Socket, $this->RequestSocket);
212	}
1008
1009		$r = $this->Socket->buildRequestLine(array('method' => 'GET', 'uri' => 'http://www.cakephp.org/search?q=socket'));
1010		$this->assertEquals($r, "GET /search?q=socket HTTP/1.1\r\n");
1223
1224		$r = $this->Socket->buildUri(array('host' => 'www.cakephp.org', 'path' => '/search', 'query' => array('q' => 'HttpSocket')));
1225		$this->assertEquals($r, 'http://www.cakephp.org/search?q=HttpSocket');
1463/**
1464 * This tests asserts HttpSocket::reset() resets a HttpSocket instance to it's initial state (before Object::__construct
1465 * got executed)
1486/**
1487 * This tests asserts HttpSocket::reset(false) resets certain HttpSocket properties to their initial state (before
1488 * Object::__construct got executed).
greenio_test.py https://bitbucket.org/portante/eventlet-08 | Python | 878 lines
289
290        server = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
291        server.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
297
298        server = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
299        server.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
319
320        server = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
321        server.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
335        large_data = s2b('*') * 10 * min_buf_size()
336        listener = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
337        listener.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
431        # stopped listening for doesn't result in an incorrect switch
432        server = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
433        server.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
socket.rst https://bitbucket.org/atsuoishimoto/cpython | Unknown | 1,516 lines
1307   PORT = 50007              # Arbitrary non-privileged port
1308   s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
1309   s.bind((HOST, PORT))
1325   PORT = 50007              # The same port as used by the server
1326   s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
1327   s.connect((HOST, PORT))
1415   # create a raw socket and bind it to the public interface
1416   s = socket.socket(socket.AF_INET, socket.SOCK_RAW, socket.IPPROTO_IP)
1417   s.bind((HOST, 0))
1434
1435    socket.socket(socket.AF_CAN, socket.SOCK_DGRAM, socket.CAN_BCM)
1436
1462   # create a raw socket and bind it to the 'vcan0' interface
1463   s = socket.socket(socket.AF_CAN, socket.SOCK_RAW, socket.CAN_RAW)
1464   s.bind(('vcan0',))
test_socket.py https://bitbucket.org/atsuoishimoto/cpython | Python | 5,107 lines
44    try:
45        s = socket.socket(socket.PF_CAN, socket.SOCK_RAW, socket.CAN_RAW)
46    except (AttributeError, OSError):
1419    def testBindAny(self):
1420        with socket.socket(socket.PF_CAN, socket.SOCK_RAW, socket.CAN_RAW) as s:
1421            s.bind(('', ))
1424        # most systems limit IFNAMSIZ to 16, take 1024 to be sure
1425        with socket.socket(socket.PF_CAN, socket.SOCK_RAW, socket.CAN_RAW) as s:
1426            self.assertRaisesRegex(OSError, 'interface name too long',
1431    def testLoopback(self):
1432        with socket.socket(socket.PF_CAN, socket.SOCK_RAW, socket.CAN_RAW) as s:
1433            for loopback in (0, 1):
1443        can_filter = struct.pack("=II", can_id, can_mask)
1444        with socket.socket(socket.PF_CAN, socket.SOCK_RAW, socket.CAN_RAW) as s:
1445            s.setsockopt(socket.SOL_CAN_RAW, socket.CAN_RAW_FILTER, can_filter)
greenio_test.py https://bitbucket.org/opentekhnia/eventlet | Python | 867 lines
289
290        server = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
291        server.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
297
298        server = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
299        server.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
431        # stopped listening for doesn't result in an incorrect switch
432        server = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
433        server.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
738        server_coro = eventlet.spawn(server)
739        client = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
740        client.connect(('127.0.0.1', listener.getsockname()[1]))
773
774        listener = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
775        listener.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
Net.java https://bitbucket.org/mad_fau/fasl | Java | 402 lines
188		}
189		public TCPServerSocket(ServerSocket socket) {
190			this.socket = socket;
204		}
205		public TCPClientSocket(Socket socket) {
206			this.socket = socket;
237	public static final TCPClientSocket accept(final TCPServerSocket serverSocket) {
238		if (serverSocket == null || serverSocket.socket == null) {
239			throw new IllegalArgumentException("socket must not be null");
247				try {
248					TCPClientSocket ret = new TCPClientSocket(serverSocket.socket.accept());
249
305	public static final Boolean send(TCPClientSocket socket, String msg) {
306		if (socket == null || socket.socket == null) {
307			throw new IllegalArgumentException("socket must not be null");
test_socket.py https://bitbucket.org/akruis/fg2python | Python | 5,094 lines
46    try:
47        s = socket.socket(socket.PF_CAN, socket.SOCK_RAW, socket.CAN_RAW)
48    except (AttributeError, OSError):
1421    def testBindAny(self):
1422        with socket.socket(socket.PF_CAN, socket.SOCK_RAW, socket.CAN_RAW) as s:
1423            s.bind(('', ))
1426        # most systems limit IFNAMSIZ to 16, take 1024 to be sure
1427        with socket.socket(socket.PF_CAN, socket.SOCK_RAW, socket.CAN_RAW) as s:
1428            self.assertRaisesRegex(OSError, 'interface name too long',
1433    def testLoopback(self):
1434        with socket.socket(socket.PF_CAN, socket.SOCK_RAW, socket.CAN_RAW) as s:
1435            for loopback in (0, 1):
1445        can_filter = struct.pack("=II", can_id, can_mask)
1446        with socket.socket(socket.PF_CAN, socket.SOCK_RAW, socket.CAN_RAW) as s:
1447            s.setsockopt(socket.SOL_CAN_RAW, socket.CAN_RAW_FILTER, can_filter)
socket.h https://bitbucket.org/klenkovic/ns-3-dev-logging-fixes | C++ Header | 976 lines
43 * \ingroup network
44 * \defgroup socket Socket
45 */
113   */
114  virtual enum Socket::SocketErrno GetErrno (void) const = 0;
115  /**
117    */
118  virtual enum Socket::SocketType GetSocketType (void) const = 0;
119  /**
598   * For IP_PKTINFO/IP6_PKTINFO. This method is only usable for 
599   * Raw socket and Datagram Socket. Not supported for Stream socket.
600   *
773   * This method corresponds to using setsockopt () IPV6_RECVHOPLIMIT of real
774   * network or BSD sockets. In our implementation, the socket simply 
775   * adds a SocketIpv6HopLimitTag tag to the packet before passing the
test_sock_app.py https://bitbucket.org/jphalip/pypy | Python | 691 lines
355        import _socket
356        raises(_socket.error, _socket.socket, 10001, _socket.SOCK_STREAM, 0)
357
472        # A socket sould start with reuse == 0
473        s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
474        reuse = s.getsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR)
480        intsize = struct.calcsize('i')
481        s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
482        reusestr = s.getsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR,
660        MSG = 'dupa was here\n'
661        cli = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
662        cli.connect(self.serv.getsockname())
673        import socket
674        cli = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
675        assert cli.family == socket.AF_INET
lm-old-socket.c https://github.com/mhallendal/loudmouth.git | C | 1,064 lines
91
92static void         socket_free                    (LmOldSocket    *socket);
93static gboolean     socket_do_connect              (LmConnectData  *connect_data);
142static gint
143old_socket_do_write (LmOldSocket *socket, const gchar *buf, guint len)
144{
1036void
1037lm_old_socket_asyncns_cancel (LmOldSocket *socket)
1038{
1046gboolean
1047lm_old_socket_get_use_starttls (LmOldSocket *socket)
1048{
1056gboolean
1057lm_old_socket_get_require_starttls (LmOldSocket *socket)
1058{
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21