PageRenderTime 31ms queryFilters 46ms Sphinxql 100ms app.CodeModel.GetByIds 18ms findMatchingLines 97ms GetByIds 115ms meta 0ms repositoryFilters 7ms languageFilters 1ms sourceFilters 4ms

626,242 results for 'socket repo:jksdua__common/auth' (31 ms)

Source

Language

Repository

test_socket.py https://bitbucket.org/uiappstore/pypy | Python | 1,623 lines
560        port = self._get_unused_port()
561        sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
562        self.addCleanup(sock.close)
578        # We know a socket should start without reuse==0
579        sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
580        self.addCleanup(sock.close)
1181        port = test_support.find_unused_port()
1182        cli = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
1183        self.addCleanup(cli.close)
1426        s1.listen(1)
1427        s2 = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
1428        s2.connect(s1.getsockname())
1575        time.sleep(0.1)
1576        self.cli = socket.socket(socket.AF_TIPC, socket.SOCK_STREAM)
1577        addr = (socket.TIPC_ADDR_NAME, TIPC_STYPE,
sqWin32NewNet.c https://bitbucket.org/rmacnak/nsvm | C | 1,987 lines
579	 1 - if the socket is writable or an error occured
580	 SOCKET_ERROR - if the socket has been closed
581      */
1348{
1349  sqSocketCreateNetTypeSocketTypeRecvBytesSendBytesSemaIDReadSemaIDWriteSemaID(s, netType, socketType, recvBufSize, sendBufSize, semaIndex, semaIndex, semaIndex);
1350}
1351
1352void	sqSocketCreateNetTypeSocketTypeRecvBytesSendBytesSemaIDReadSemaIDWriteSemaID(SocketPtr s, int netType, int socketType, int recvBufSize, int sendBufSize, int connSemaIndex, int readSemaIndex, int writeSemaIndex)
1353{
1427void sqSocketAcceptFromRecvBytesSendBytesSemaID(
1428            SocketPtr s, SocketPtr serverSocket,
1429            int recvBufSize, int sendBufSize, int semaIndex)
1433
1434void sqSocketAcceptFromRecvBytesSendBytesSemaIDReadSemaIDWriteSemaID(SocketPtr s, SocketPtr serverSocket, int recvBufSize, int sendBufSize, int connSemaIndex, int readSemaIndex, int writeSemaIndex)
1435{
sqUnixSocket.c https://bitbucket.org/rmacnak/nsvm | C | 1,421 lines
508
509void sqSocketCreateNetTypeSocketTypeRecvBytesSendBytesSemaID(SocketPtr s, sqInt netType, sqInt socketType, sqInt recvBufSize, sqInt sendBufSize, sqInt semaIndex)
510{
513
514void sqSocketCreateNetTypeSocketTypeRecvBytesSendBytesSemaIDReadSemaIDWriteSemaID(SocketPtr s, sqInt netType, sqInt socketType, sqInt recvBufSize, sqInt sendBufSize, sqInt semaIndex, sqInt readSemaIndex, sqInt writeSemaIndex)
515{
602#endif
603  FPRINTF((stderr, "socketStatus(%d) -> %d\n", SOCKET(s), SOCKETSTATE(s)));
604  return SOCKETSTATE(s);
714
715void sqSocketAcceptFromRecvBytesSendBytesSemaID(SocketPtr s, SocketPtr serverSocket, sqInt recvBufSize, sqInt sendBufSize, sqInt semaIndex)
716{
720
721void sqSocketAcceptFromRecvBytesSendBytesSemaIDReadSemaIDWriteSemaID(SocketPtr s, SocketPtr serverSocket, sqInt recvBufSize, sqInt sendBufSize, sqInt semaIndex, sqInt readSemaIndex, sqInt writeSemaIndex)
722{
test_ssl.py https://bitbucket.org/python_mirrors/sandbox-jcea-cpython-2011 | Python | 1,993 lines
731            # Same with a server hostname
732            s = ctx.wrap_socket(socket.socket(socket.AF_INET),
733                                server_hostname="svn.python.org")
789        with support.transient_internet("svn.python.org"):
790            ss = ssl.wrap_socket(socket.socket(socket.AF_INET))
791            ss.connect(("svn.python.org", 443))
854        with support.transient_internet(remote[0]):
855            s = ssl.wrap_socket(socket.socket(socket.AF_INET),
856                                cert_reqs=ssl.CERT_NONE, ciphers="ALL")
857            s.connect(remote)
858            s = ssl.wrap_socket(socket.socket(socket.AF_INET),
859                                cert_reqs=ssl.CERT_NONE, ciphers="DEFAULT")
883            ctx.load_verify_locations(sha256_cert)
884            s = ctx.wrap_socket(socket.socket(socket.AF_INET),
885                                server_hostname="sha256.tbs-internet.com")
test_socket.py https://bitbucket.org/python_mirrors/sandbox-jcea-cpython-2011 | Python | 4,819 lines
47    try:
48        s = socket.socket(socket.PF_CAN, socket.SOCK_RAW, socket.CAN_RAW)
49    except (AttributeError, socket.error, OSError):
124    def setUp(self):
125        self.s = socket.socket(socket.PF_CAN, socket.SOCK_RAW, socket.CAN_RAW)
126        self.addCleanup(self.s.close)
1281    def testBindAny(self):
1282        with socket.socket(socket.PF_CAN, socket.SOCK_RAW, socket.CAN_RAW) as s:
1283            s.bind(('', ))
1286        # most systems limit IFNAMSIZ to 16, take 1024 to be sure
1287        with socket.socket(socket.PF_CAN, socket.SOCK_RAW, socket.CAN_RAW) as s:
1288            self.assertRaisesRegex(socket.error, 'interface name too long',
1293    def testLoopback(self):
1294        with socket.socket(socket.PF_CAN, socket.SOCK_RAW, socket.CAN_RAW) as s:
1295            for loopback in (0, 1):
socket.rst https://bitbucket.org/python_mirrors/sandbox-jcea-cpython-2011 | Unknown | 1,408 lines
1208   PORT = 50007              # Arbitrary non-privileged port
1209   s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
1210   s.bind((HOST, PORT))
1226   PORT = 50007              # The same port as used by the server
1227   s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
1228   s.connect((HOST, PORT))
1316   # create a raw socket and bind it to the public interface
1317   s = socket.socket(socket.AF_INET, socket.SOCK_RAW, socket.IPPROTO_IP)
1318   s.bind((HOST, 0))
1354   # create a raw socket and bind it to the 'vcan0' interface
1355   s = socket.socket(socket.AF_CAN, socket.SOCK_RAW, socket.CAN_RAW)
1356   s.bind(('vcan0',))
1383
1384   s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
1385   s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
wi-socket.c https://bitbucket.org/balrog/zanka-full | C | 1,491 lines
424
425wi_socket_t * wi_socket_init_with_address(wi_socket_t *_socket, wi_address_t *address, wi_socket_type_t type) {
426	_socket->address	= wi_copy(address);
430
431	_socket->sd			= socket(wi_address_family(_socket->address), _socket->type, 0);
432	
451
452wi_socket_t * wi_socket_init_with_descriptor(wi_socket_t *socket, int sd) {
453	socket->sd			= sd;
1079
1080wi_socket_t * wi_socket_accept(wi_socket_t *accept_socket, wi_socket_context_t *context, wi_time_interval_t timeout, wi_address_t **address) {
1081	wi_socket_t					*socket;
1265
1266int32_t wi_socket_recvfrom(wi_socket_t *socket, wi_socket_context_t *context, char *buffer, size_t length, wi_address_t **address) {
1267	struct sockaddr_storage		ss;
wi-socket.c https://bitbucket.org/balrog/zanka-full | C | 1,682 lines
385
386wi_socket_t * wi_socket_init_with_address(wi_socket_t *_socket, wi_address_t *address, wi_socket_type_t type) {
387	_socket->address	= wi_copy(address);
391
392	_socket->sd			= socket(wi_address_family(_socket->address), _socket->type, 0);
393	
832	
833	WI_ASSERT(socket->type == WI_SOCKET_TCP, "%@ is not a TCP socket", socket);
834	
1067
1068wi_boolean_t wi_socket_connect_tls(wi_socket_t *socket, wi_socket_tls_t *tls, wi_time_interval_t timeout) {
1069	wi_socket_state_t	state;
1169
1170wi_socket_t * wi_socket_accept(wi_socket_t *accept_socket, wi_time_interval_t timeout, wi_address_t **address) {
1171	wi_socket_t					*socket;
wi-socket.c https://bitbucket.org/balrog/zanka-full | C | 1,520 lines
429
430wi_socket_t * wi_socket_init_with_address(wi_socket_t *_socket, wi_address_t *address, wi_socket_type_t type) {
431	_socket->address	= wi_copy(address);
456
457wi_socket_t * wi_socket_init_with_descriptor(wi_socket_t *socket, int sd) {
458	socket->sd			= sd;
980
981wi_boolean_t wi_socket_connect(wi_socket_t *socket, wi_socket_context_t *context, wi_time_interval_t timeout) {
982	struct sockaddr		*sa;
1108
1109wi_socket_t * wi_socket_accept(wi_socket_t *accept_socket, wi_socket_context_t *context, wi_time_interval_t timeout, wi_address_t **address) {
1110	wi_socket_t					*socket;
1218
1219wi_integer_t wi_socket_sendto(wi_socket_t *socket, wi_socket_context_t *context, wi_string_t *fmt, ...) {
1220	wi_string_t		*string;
wi-socket.c https://bitbucket.org/balrog/zanka-full | C | 1,694 lines
385
386wi_socket_t * wi_socket_init_with_address(wi_socket_t *_socket, wi_address_t *address, wi_socket_type_t type) {
387	_socket->address	= wi_copy(address);
391
392	_socket->sd			= socket(wi_address_family(_socket->address), _socket->type, 0);
393	
832	
833	WI_ASSERT(socket->type == WI_SOCKET_TCP, "%@ is not a TCP socket", socket);
834	
1067
1068wi_boolean_t wi_socket_connect_tls(wi_socket_t *socket, wi_socket_tls_t *tls, wi_time_interval_t timeout) {
1069	wi_socket_state_t	state;
1169
1170wi_socket_t * wi_socket_accept(wi_socket_t *accept_socket, wi_time_interval_t timeout, wi_address_t **address) {
1171	wi_socket_t					*socket;
wi-socket.c https://bitbucket.org/balrog/zanka-full | C | 1,697 lines
386
387wi_socket_t * wi_socket_init_with_address(wi_socket_t *_socket, wi_address_t *address, wi_socket_type_t type) {
388	_socket->address	= wi_copy(address);
392
393	_socket->sd			= socket(wi_address_family(_socket->address), _socket->type, 0);
394	
421
422wi_socket_t * wi_socket_init_with_descriptor(wi_socket_t *socket, int sd) {
423	socket->sd			= sd;
1064
1065wi_boolean_t wi_socket_connect_tls(wi_socket_t *socket, wi_socket_tls_t *tls, wi_time_interval_t timeout) {
1066	wi_socket_state_t	state;
1158
1159wi_socket_t * wi_socket_accept(wi_socket_t *accept_socket, wi_time_interval_t timeout, wi_address_t **address) {
1160	wi_socket_t					*socket;
wi-socket.c https://bitbucket.org/balrog/zanka-full | C | 1,641 lines
386
387wi_socket_t * wi_socket_init_with_address(wi_socket_t *_socket, wi_address_t *address, wi_socket_type_t type) {
388	_socket->address	= wi_copy(address);
421
422wi_socket_t * wi_socket_init_with_descriptor(wi_socket_t *socket, int sd) {
423	socket->sd			= sd;
1064
1065wi_boolean_t wi_socket_connect_tls(wi_socket_t *socket, wi_socket_tls_t *tls, wi_time_interval_t timeout) {
1066	wi_socket_state_t	state;
1158
1159wi_socket_t * wi_socket_accept(wi_socket_t *accept_socket, wi_time_interval_t timeout, wi_address_t **address) {
1160	wi_socket_t					*socket;
1193
1194wi_boolean_t wi_socket_accept_tls(wi_socket_t *socket, wi_socket_tls_t *tls, wi_time_interval_t timeout) {
1195	wi_socket_state_t	state;
test_sock_app.py https://bitbucket.org/dac_io/pypy | Python | 674 lines
346        import _socket
347        raises(_socket.error, _socket.socket, 10001, _socket.SOCK_STREAM, 0)
348
373        import _socket, os
374        s = _socket.socket(_socket.AF_INET, _socket.SOCK_STREAM, 0)
375        # it would be nice to have a test which works even if there is no
469        intsize = struct.calcsize('i')
470        s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
471        reusestr = s.getsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR,
643        MSG = 'dupa was here\n'
644        cli = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
645        cli.connect(self.serv.getsockname())
656        import socket
657        cli = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
658        assert cli.family == socket.AF_INET
test_ssl.py https://bitbucket.org/python_mirrors/sandbox-cjerdonek-cpython | Python | 1,989 lines
727            # Same with a server hostname
728            s = ctx.wrap_socket(socket.socket(socket.AF_INET),
729                                server_hostname="svn.python.org")
785        with support.transient_internet("svn.python.org"):
786            ss = ssl.wrap_socket(socket.socket(socket.AF_INET))
787            ss.connect(("svn.python.org", 443))
850        with support.transient_internet(remote[0]):
851            s = ssl.wrap_socket(socket.socket(socket.AF_INET),
852                                cert_reqs=ssl.CERT_NONE, ciphers="ALL")
853            s.connect(remote)
854            s = ssl.wrap_socket(socket.socket(socket.AF_INET),
855                                cert_reqs=ssl.CERT_NONE, ciphers="DEFAULT")
879            ctx.load_verify_locations(sha256_cert)
880            s = ctx.wrap_socket(socket.socket(socket.AF_INET),
881                                server_hostname="sha256.tbs-internet.com")
test_socket.py https://bitbucket.org/python_mirrors/sandbox-cjerdonek-cpython | Python | 4,830 lines
47    try:
48        s = socket.socket(socket.PF_CAN, socket.SOCK_RAW, socket.CAN_RAW)
49    except (AttributeError, socket.error, OSError):
124    def setUp(self):
125        self.s = socket.socket(socket.PF_CAN, socket.SOCK_RAW, socket.CAN_RAW)
126        self.addCleanup(self.s.close)
1292    def testBindAny(self):
1293        with socket.socket(socket.PF_CAN, socket.SOCK_RAW, socket.CAN_RAW) as s:
1294            s.bind(('', ))
1297        # most systems limit IFNAMSIZ to 16, take 1024 to be sure
1298        with socket.socket(socket.PF_CAN, socket.SOCK_RAW, socket.CAN_RAW) as s:
1299            self.assertRaisesRegex(socket.error, 'interface name too long',
1304    def testLoopback(self):
1305        with socket.socket(socket.PF_CAN, socket.SOCK_RAW, socket.CAN_RAW) as s:
1306            for loopback in (0, 1):
greenio_test.py https://bitbucket.org/edwardgeorge/eventlet | Python | 873 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)
422        else:
423            sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
424            sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
744        server_coro = eventlet.spawn(server)
745        client = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
746        client.connect(('127.0.0.1', listener.getsockname()[1]))
779
780        listener = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
781        listener.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
socket.rst https://bitbucket.org/rmtew/cpython-stackless2 | Unknown | 1,277 lines
844          for cmsg_level, cmsg_type, cmsg_data in ancdata:
845              if (cmsg_level == socket.SOL_SOCKET and cmsg_type == socket.SCM_RIGHTS):
846                  # Append data, ignoring any truncated integers at the end.
1117   PORT = 50007              # Arbitrary non-privileged port
1118   s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
1119   s.bind((HOST, PORT))
1135   PORT = 50007              # The same port as used by the server
1136   s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
1137   s.connect((HOST, PORT))
1225   # create a raw socket and bind it to the public interface
1226   s = socket.socket(socket.AF_INET, socket.SOCK_RAW, socket.IPPROTO_IP)
1227   s.bind((HOST, 0))
1252
1253   s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
1254   s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
test_ssl.py https://bitbucket.org/ndelrosario/cpython | Python | 2,025 lines
720            ctx = ssl.SSLContext(ssl.PROTOCOL_SSLv23)
721            s = ctx.wrap_socket(socket.socket(socket.AF_INET))
722            s.connect(("svn.python.org", 443))
727            # Same with a server hostname
728            s = ctx.wrap_socket(socket.socket(socket.AF_INET),
729                                server_hostname="svn.python.org")
785        with support.transient_internet("svn.python.org"):
786            ss = ssl.wrap_socket(socket.socket(socket.AF_INET))
787            ss.connect(("svn.python.org", 443))
850        with support.transient_internet(remote[0]):
851            s = ssl.wrap_socket(socket.socket(socket.AF_INET),
852                                cert_reqs=ssl.CERT_NONE, ciphers="ALL")
879            ctx.load_verify_locations(sha256_cert)
880            s = ctx.wrap_socket(socket.socket(socket.AF_INET),
881                                server_hostname="sha256.tbs-internet.com")
test_socket.py https://bitbucket.org/ndelrosario/cpython | Python | 4,849 lines
47    try:
48        s = socket.socket(socket.PF_CAN, socket.SOCK_RAW, socket.CAN_RAW)
49    except (AttributeError, socket.error, OSError):
1288    def testCreateSocket(self):
1289        with socket.socket(socket.PF_CAN, socket.SOCK_RAW, socket.CAN_RAW) as s:
1290            pass
1292    def testBindAny(self):
1293        with socket.socket(socket.PF_CAN, socket.SOCK_RAW, socket.CAN_RAW) as s:
1294            s.bind(('', ))
1297        # most systems limit IFNAMSIZ to 16, take 1024 to be sure
1298        with socket.socket(socket.PF_CAN, socket.SOCK_RAW, socket.CAN_RAW) as s:
1299            self.assertRaisesRegex(socket.error, 'interface name too long',
1316        can_filter = struct.pack("=II", can_id, can_mask)
1317        with socket.socket(socket.PF_CAN, socket.SOCK_RAW, socket.CAN_RAW) as s:
1318            s.setsockopt(socket.SOL_CAN_RAW, socket.CAN_RAW_FILTER, can_filter)
test_sock_app.py https://bitbucket.org/nbtaylor/pypy | Python | 687 lines
353        import _socket
354        raises(_socket.error, _socket.socket, 10001, _socket.SOCK_STREAM, 0)
355
380        import _socket, os
381        s = _socket.socket(_socket.AF_INET, _socket.SOCK_STREAM, 0)
382        # it would be nice to have a test which works even if there is no
476        intsize = struct.calcsize('i')
477        s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
478        reusestr = s.getsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR,
656        MSG = 'dupa was here\n'
657        cli = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
658        cli.connect(self.serv.getsockname())
669        import socket
670        cli = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
671        assert cli.family == socket.AF_INET
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21