PageRenderTime 215ms queryFilters 1ms Sphinxql 73ms app.CodeModel.GetByIds 14ms findMatchingLines 85ms GetByIds 99ms meta 0ms repositoryFilters 17ms languageFilters 4ms sourceFilters 6ms

626,242 results for 'socket repo:thesonglessbird/socket.io-client' (215 ms)

Source

Language

Repository

socket.c https://bitbucket.org/emiliolopez/linux.git | C | 3,445 lines
284{
285	struct socket_alloc *ei = (struct socket_alloc *)foo;
286
538	if (!err && (iattr->ia_valid & ATTR_UID)) {
539		struct socket *sock = SOCKET_I(d_inode(dentry));
540
1213	if (!sock) {
1214		net_warn_ratelimited("socket: no more sockets\n");
1215		return -ENFILE;	/* Not exactly a match, but its the
3282
3283int kernel_accept(struct socket *sock, struct socket **newsock, int flags)
3284{
3402 * this is an IPv4 or IPv6 socket and the length from IP options turned
3403 * on at the socket. Assumes that the caller has a lock on the socket.
3404 */
socket.c https://bitbucket.org/emiliolopez/linux.git | C | 2,903 lines
65 * struct tipc_sock - TIPC socket structure
66 * @sk: socket - interacts with 'port' and with user via the socket API
67 * @conn_type: TIPC type used when connection was established
483
484/* Caller should hold socket lock for the socket. */
485static void __tipc_shutdown(struct socket *sock, int error)
2517
2518static int tipc_socketpair(struct socket *sock1, struct socket *sock2)
2519{
2651
2652/* Caller should hold socket lock for the passed tipc socket. */
2653static int __tipc_nl_add_sk_con(struct sk_buff *skb, struct tipc_sock *tsk)
2686
2687/* Caller should hold socket lock for the passed tipc socket. */
2688static int __tipc_nl_add_sk(struct sk_buff *skb, struct netlink_callback *cb,
basic_socket.hpp https://bitbucket.org/boostorg/asio.git | C++ Header | 1,520 lines
155   */
156  basic_socket(basic_socket&& other)
157    : basic_io_object<SocketService>(
193  template <typename Protocol1, typename SocketService1>
194  basic_socket(basic_socket<Protocol1, SocketService1>&& other,
195      typename enable_if<is_convertible<Protocol1, Protocol>::value>::type* = 0)
1467   * @code
1468   * boost::asio::ip::tcp::socket socket(io_service);
1469   * ...
1469   * ...
1470   * socket.shutdown(boost::asio::ip::tcp::socket::shutdown_send);
1471   * @endcode
1491   * @code
1492   * boost::asio::ip::tcp::socket socket(io_service);
1493   * ...
sockets.php https://bitbucket.org/2GAndre/myeclipse4php.git | PHP | 1,901 lines
245 * @param socket resource <p>
246 * A valid socket resource created with socket_create.
247 * </p>
1207 */
1208function socket_clear_error ($socket = null) {}
1209
1219 */
1220function socket_getopt ($socket, $level, $optname) {}
1221
1227 */
1228function socket_setopt ($socket, $level, $optname, $optval) {}
1229
1707/**
1708 * Socket operation on non-socket.
1709 * @link http://www.php.net/manual/en/sockets.constants.php
pd6729.c https://bitbucket.org/microcreat/cortexm_uclinux.git | C | 814 lines
250{
251	struct pd6729_socket *socket = (struct pd6729_socket *) data;
252
297
298	t = (socket->number) ? socket : socket + 1;
299	indirect_write(t, PD67_EXT_INDEX, PD67_EXTERN_DATA);
640
641	socket = kzalloc(sizeof(struct pd6729_socket) * MAX_SOCKETS,
642			 GFP_KERNEL);
696		socket[i].socket.dev.parent = &dev->dev;
697		socket[i].socket.driver_data = &socket[i];
698	}
754
755		pcmcia_unregister_socket(&socket[i].socket);
756	}
socket.c https://bitbucket.org/codefirex/kernel_lge_kamakogeebang.git | C | 3,384 lines
1/*
2 * NET		An implementation of the SOCKET network access protocol.
3 *
29 *					allowed to allocate.
30 *		Linus		:	Argh. removed all the socket allocation
31 *					altogether: it's in the inode now.
278{
279	struct socket_alloc *ei = (struct socket_alloc *)foo;
280
1240		if (net_ratelimit())
1241			printk(KERN_WARNING "socket: no more sockets\n");
1242		return -ENFILE;	/* Not exactly a match, but its the
3266
3267int kernel_accept(struct socket *sock, struct socket **newsock, int flags)
3268{
socket-interface.lisp https://bitbucket.org/jmelo_lyncode/thesis.git | Lisp | 986 lines
333
334  (let ((socket (socket=socketname.socket socketname)))
335    (and socket (socket-active? socketname) 
450
451  (let ((socket (socket=socketname.socket socketname)))
452    (cond ((and socket (not (equal socket 'unconnected)))
549  (let 	((astring nil)
550	 (socket (socket=socketname.socket socketname))
551	 (local-stream (make-string-output-stream))
610
611  (let* ((socket (socket=socketname.socket socketname)))
612    (cond ((and socket (not (equal socket 'unconnected))) 
976
977  (let ((socket (socket=socketname.socket socketname)))
978    (when socket
socket.c https://bitbucket.org/DutchDanny/bindroid-xtc-onex.git | C | 3,470 lines
1/*
2 * NET		An implementation of the SOCKET network access protocol.
3 *
29 *					allowed to allocate.
30 *		Linus		:	Argh. removed all the socket allocation
31 *					altogether: it's in the inode now.
285{
286	struct socket_alloc *ei = (struct socket_alloc *)foo;
287
1297		if (net_ratelimit())
1298			printk(KERN_WARNING "socket: no more sockets\n");
1299		return -ENFILE;	/* Not exactly a match, but its the
3352
3353int kernel_accept(struct socket *sock, struct socket **newsock, int flags)
3354{
NetUtils.java https://bitbucket.org/shenli/tapa.git | Java | 444 lines
104   */
105  public static SocketFactory getSocketFactoryFromProperty(
106      Configuration conf, String propValue) {
319    return (socket.getChannel() == null) ? 
320          socket.getInputStream() : new SocketInputStream(socket, timeout);
321  }
370    return (socket.getChannel() == null) ? 
371            socket.getOutputStream() : new SocketOutputStream(socket, timeout);            
372  }
375   * This is a drop-in replacement for 
376   * {@link Socket#connect(SocketAddress, int)}.
377   * In the case of normal sockets that don't have associated channels, this 
384   * 
385   * @see java.net.Socket#connect(java.net.SocketAddress, int)
386   * 
NetUtils.html https://bitbucket.org/shenli/tapa.git | HTML | 743 lines
143<CODE>static&nbsp;void</CODE></FONT></TD>
144<TD><CODE><B><A HREF="../../../../org/apache/hadoop/net/NetUtils.html#connect(java.net.Socket, java.net.SocketAddress, int)">connect</A></B>(java.net.Socket&nbsp;socket,
145        java.net.SocketAddress&nbsp;endpoint,
231<CODE>static&nbsp;java.io.OutputStream</CODE></FONT></TD>
232<TD><CODE><B><A HREF="../../../../org/apache/hadoop/net/NetUtils.html#getOutputStream(java.net.Socket, long)">getOutputStream</A></B>(java.net.Socket&nbsp;socket,
233                long&nbsp;timeout)</CODE>
524 SocketChannel then it returns a 
525 <A HREF="../../../../org/apache/hadoop/net/SocketInputStream.html" title="class in org.apache.hadoop.net"><CODE>SocketInputStream</CODE></A> with the given timeout. If the socket does not
526 have a channel, <CODE>Socket.getInputStream()</CODE> is returned. In the later
550 SocketChannel then it returns a 
551 <A HREF="../../../../org/apache/hadoop/net/SocketInputStream.html" title="class in org.apache.hadoop.net"><CODE>SocketInputStream</CODE></A> with the given timeout. If the socket does not
552 have a channel, <CODE>Socket.getInputStream()</CODE> is returned. In the later
580 SocketChannel then it returns a 
581 <A HREF="../../../../org/apache/hadoop/net/SocketOutputStream.html" title="class in org.apache.hadoop.net"><CODE>SocketOutputStream</CODE></A> with the given timeout. If the socket does not
582 have a channel, <CODE>Socket.getOutputStream()</CODE> is returned. In the later
npush-s-v2.io.js https://bitbucket.org/newicon/npush-server.git | JavaScript | 1,629 lines
516				"rooms./' + socket.client + '/' + socket.channel + '/' + socket.room + '/.date" : "' + _time.getTime() + '",\n\
517				"rooms./' + socket.client + '/' + socket.channel + '/' + socket.room + '/.name" : "/' + socket.client + '/' + socket.channel + '/' + socket.room + '/" } ';
518
724			// set admin-stats for this API
725			sstats[socket] = {mps:activityGlobal[socket].s.mps,mpm:activityGlobal[socket].s.mpm,s:activityGlobal[socket].n.as,n:activityGlobal[socket].n.n};
726
922		
923		nicknames[socket.handshake.client_room][socket.handshake.channel][socket.handshake.user_room][socket.handshake.user_id] = socket.nickname = socket.handshake.user_name;
924		
1028
1029			var _search_time = ' { "user_id" : "' + socket.user_id + '", "rooms./' + socket.client + '/' + socket.channel + '/' + socket.room + '/.date" : {"$exists": true} } ';
1030
1046				// SEARCH FOR MESSAGES FOR ROOM
1047				var _search_msg = ' { "date" : { "$gt" : ' + socket.user_last_activity + ' }, "room" : "/' + socket.client + '/' + socket.channel + '/' + socket.room + '/" } ';				
1048				_search = JSON.parse(_search_msg);
newicon-s-v1.io.js https://bitbucket.org/newicon/npush-server.git | JavaScript | 590 lines
183    
184	nicknames[socket.handshake.client_room][socket.handshake.channel][socket.handshake.user_room][socket.handshake.user_id] = socket.nickname = socket.handshake.user_name;
185
325           
326		var _search_time = ' { "users_activity.' + socket.user_id + './' + socket.client + '/' + socket.channel + '/' + socket.room + '/.date" : {"$exists": true}, "api_key" : "' + socket.api_key + '" } ';
327    
394           
395		var _search_time = ' { "users_activity.' + socket.user_id + './' + socket.client + '/' + socket.channel + '/' + socket.room + '/.date" : {"$exists": true}, "api_key" : "' + socket.api_key + '" } ';
396    
405			{
406				socket.user_last_activity = doc['users_activity'][socket.user_id]['/' + socket.client + '/' + socket.channel + '/' + socket.room + '/']['date'];
407				var _time = new Date(socket.user_last_activity*1);
489		//io.sockets.in(socket.path).emit('nicknames', nicknames[socket.handshake.client_room ]);
490		io.sockets.in(socket.path).emit('usersroom', nicknames[socket.handshake.client_room][socket.handshake.channel][socket.handshake.user_room]);  
491		io.sockets.emit('usersapp', nicknames[socket.handshake.client_room]);
HttpSocketTest.php https://bitbucket.org/browsewire/symfony-project-code.git | PHP | 1,721 lines
309/**
310 * Tests that HttpSocket::request (the heart of the HttpSocket) is working properly.
311 *
1393
1394		$r = $this->Socket->buildUri(array('host' => 'www.cakephp.org', 'path' => '/search', 'query' => array('q' => 'HttpSocket')));
1395		$this->assertEquals('http://www.cakephp.org/search?q=HttpSocket', $r);
1636/**
1637 * This tests asserts HttpSocket::reset() resets a HttpSocket instance to it's initial state (before Object::__construct
1638 * got executed)
1659/**
1660 * This tests asserts HttpSocket::reset(false) resets certain HttpSocket properties to their initial state (before
1661 * Object::__construct got executed).
1709		$this->skipIf(!extension_loaded('openssl'), 'OpenSSL is not enabled cannot test SSL.');
1710		$socket = new HttpSocket();
1711		try {
socket.c https://bitbucket.org/codefirex/kernel_lge_gee.git | C | 3,384 lines
1/*
2 * NET		An implementation of the SOCKET network access protocol.
3 *
29 *					allowed to allocate.
30 *		Linus		:	Argh. removed all the socket allocation
31 *					altogether: it's in the inode now.
278{
279	struct socket_alloc *ei = (struct socket_alloc *)foo;
280
1237		if (net_ratelimit())
1238			printk(KERN_WARNING "socket: no more sockets\n");
1239		return -ENFILE;	/* Not exactly a match, but its the
3266
3267int kernel_accept(struct socket *sock, struct socket **newsock, int flags)
3268{
apr_network_io.h https://bitbucket.org/gencer/apache2nginx.git | C Header | 857 lines
299 */
300APR_DECLARE(apr_status_t) apr_socket_shutdown(apr_socket_t *thesocket,
301                                              apr_shutdown_how_e how);
306 */
307APR_DECLARE(apr_status_t) apr_socket_close(apr_socket_t *thesocket);
308
615 */
616APR_DECLARE(apr_status_t) apr_socket_opt_set(apr_socket_t *sock,
617                                             apr_int32_t opt, apr_int32_t on);
668 */
669APR_DECLARE(apr_status_t) apr_socket_atmark(apr_socket_t *sock, 
670                                            int *atmark);
719*/
720APR_DECLARE(apr_status_t) apr_socket_type_get(apr_socket_t *sock,
721                                              int *type);
socket_api.h https://bitbucket.org/C0deMaver1ck/peeklinux.git | C++ Header | 855 lines
235  T_SOCK_RESULT      result;      /* Result code of the operation */
236  T_SOCK_SOCKET      socket;      /* Socket for which the event occurred */
237} T_SOCK_EVENTSTRUCT;
318  T_SOCK_RESULT      result;      /* Result code of the operation */
319  T_SOCK_SOCKET      socket;      /* Socket for which the event occurred */
320  T_SOCK_IPADDR      ipaddr;      /* The local IP address of the socket */
337  T_SOCK_RESULT      result;      /* Result code of the operation */
338  T_SOCK_SOCKET      socket;      /* Socket for which the event occurred */
339  U16                mtu_size;    /* MTU size */
344  T_SOCK_RESULT      result;      /* Result code of the operation */
345  T_SOCK_SOCKET      socket;      /* Socket for which the event occurred */
346  U32                data_length; /* Length of the data portion received. */
355  T_SOCK_SOCKET      socket;      /* Socket for which the event occurred */
356  T_SOCK_SOCKET      new_socket;  /* New socket allocated for the connection. */
357  T_SOCK_IPADDR      peer_ipaddr; /* IP address of the remote peer. */
tcpip_api_layer.c https://bitbucket.org/C0deMaver1ck/peeklinux.git | C | 1,884 lines
74 */
75#define SOCKPAR_GET(socket) ((T_sockpar *) rnet_get_user_data(socket))
76
76
77/* Check if there is a valid socket for the specified socket index.
78 */
347 * @param result        Result of the operation.
348 * @param socket        Index of the socket.
349 * @param ipaddr        Source IP address.
568 * 
569 * @param socket        The socket descriptor (if applicable).
570 * @param app_handle    Communication handle of application task.
1530    sdesc = SOCK_RT_DESC(prim->socket) ;
1531    TRACE_EVENT_P1("Calling rnet_listen() for socket %d", prim->socket) ;
1532    retval = rnet_listen(sdesc) ;
socket_api.c https://bitbucket.org/C0deMaver1ck/peeklinux.git | C | 1,659 lines
84  TRACE_EVENT_P2("FindSocketData() cached: %08X, search: %08X", socket_data, tcpip_socket);
85  while((socket_data != NULL) && (tcpip_socket != socket_data->tcpip_socket))
86  {
90
91  TRACE_EVENT_P2("FindSocketData: tcpip_data=%x, ret=%x",tcpip_socket,socket_data );
92  return socket_data;
121    }
122    temp_socket_data->next_socket_data = socket_data->next_socket_data;
123  }
537  /* set received values */
538  socket_data->tcpip_socket = tcpip_create_cnf->socket;
539  
542  sock_create_cnf.result     = (T_SOCK_RESULT)tcpip_create_cnf->result;
543  sock_create_cnf.socket     = (T_SOCK_SOCKET)socket_data;
544  
http_socket.test.php https://bitbucket.org/sanjeevam/beug.git | PHP | 1,407 lines
167/**
168 * Tests that HttpSocket::request (the heart of the HttpSocket) is working properly.
169 *
780
781		$r = $this->Socket->buildRequestLine(array('method' => 'GET', 'uri' => 'http://www.cakephp.org/search?q=socket'));
782		$this->assertIdentical($r, "GET /search?q=socket HTTP/1.1\r\n");
983
984		$r = $this->Socket->buildUri(array('host' => 'www.cakephp.org', 'path' => '/search', 'query' => array('q' => 'HttpSocket')));
985		$this->assertIdentical($r, 'http://www.cakephp.org/search?q=HttpSocket');
1355/**
1356 * This tests asserts HttpSocket::reset() resets a HttpSocket instance to it's initial state (before Object::__construct
1357 * got executed)
1378/**
1379 * This tests asserts HttpSocket::reset(false) resets certain HttpSocket properties to their initial state (before
1380 * Object::__construct got executed).
socket.html https://bitbucket.org/lbesson/mpri-bomberman.git | HTML | 1,079 lines
19<a href="#socket">socket</a>()&nbsp;--&nbsp;create&nbsp;a&nbsp;new&nbsp;<a href="#socket">socket</a>&nbsp;<a href="__builtin__.html#object">object</a><br>
20<a href="#-socketpair">socketpair</a>()&nbsp;--&nbsp;create&nbsp;a&nbsp;pair&nbsp;of&nbsp;new&nbsp;<a href="#socket">socket</a>&nbsp;objects&nbsp;[*]<br>
21<a href="#-fromfd">fromfd</a>()&nbsp;--&nbsp;create&nbsp;a&nbsp;<a href="#socket">socket</a>&nbsp;<a href="__builtin__.html#object">object</a>&nbsp;from&nbsp;an&nbsp;open&nbsp;file&nbsp;descriptor&nbsp;[*]<br>
155
156<dl><dt><a name="_socketobject-close"><strong>close</strong></a>(self, _closedsocket<font color="#909090">=&lt;class 'socket._closedsocket'&gt;</font>, _delegate_methods<font color="#909090">=('recv', 'recvfrom', 'recv_into', 'recvfrom_into', 'send', 'sendto')</font>, setattr<font color="#909090">=&lt;built-in function setattr&gt;</font>)</dt><dd><tt><a href="#SocketType-close">close</a>()<br>
157&nbsp;<br>
169
170<dl><dt><a name="_socketobject-dup"><strong>dup</strong></a>(self)</dt><dd><tt><a href="#SocketType-dup">dup</a>()&nbsp;-&gt;&nbsp;<a href="#socket">socket</a>&nbsp;<a href="__builtin__.html#object">object</a><br>
171&nbsp;<br>
553
554<dl><dt><a name="_socketobject-close"><strong>close</strong></a>(self, _closedsocket<font color="#909090">=&lt;class 'socket._closedsocket'&gt;</font>, _delegate_methods<font color="#909090">=('recv', 'recvfrom', 'recv_into', 'recvfrom_into', 'send', 'sendto')</font>, setattr<font color="#909090">=&lt;built-in function setattr&gt;</font>)</dt><dd><tt><a href="#socket-close">close</a>()<br>
555&nbsp;<br>
839When&nbsp;the&nbsp;<a href="#socket">socket</a>&nbsp;module&nbsp;is&nbsp;first&nbsp;imported,&nbsp;the&nbsp;default&nbsp;is&nbsp;None.</tt></dd></dl>
840 <dl><dt><a name="-socketpair"><strong>socketpair</strong></a>(...)</dt><dd><tt><a href="#-socketpair">socketpair</a>([family[,&nbsp;type[,&nbsp;proto]]])&nbsp;-&gt;&nbsp;(<a href="#socket">socket</a>&nbsp;<a href="__builtin__.html#object">object</a>,&nbsp;<a href="#socket">socket</a>&nbsp;<a href="__builtin__.html#object">object</a>)<br>
841&nbsp;<br>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21