PageRenderTime 24ms queryFilters 0ms Sphinxql 51ms app.CodeModel.GetByIds 10ms findMatchingLines 54ms GetByIds 64ms meta 0ms repositoryFilters 9ms languageFilters 8ms sourceFilters 3ms

626,242 results for 'socket repo:ndelrosario/cpython' (24 ms)

Source

Language

Repository

IoSocket.c https://github.com/iamaleksey/io.git | C | 597 lines
140
141IoSocket *IoSocket_newWithSocket_(void *state, Socket *socket)
142{
222
223	if (Socket_streamOpen(socket) && Socket_isOpen(socket) && Socket_makeReusable(socket) && Socket_makeAsync(socket))
224	{
239
240	if (Socket_udpOpen(socket) && Socket_isOpen(socket) && Socket_makeReusable(socket) && Socket_makeAsync(socket))
241	{
334	IPAddress *address = IoMessage_locals_rawIPAddressArgAt_(m, locals, 0);
335	Socket *socket = Socket_accept(SOCKET(self), address);
336	
338	{
339		IoObject *newSocket = IoSocket_newWithSocket_(IOSTATE, socket);
340		newSocket = IoObject_initClone_(self, locals, m, newSocket);
Socket.html https://github.com/JerryWho/railsdoccompilation.git | HTML | 5,176 lines
55    <dd class="r1">
56      <span class="inheritName"><span class='object_link'><a href="BasicSocket.html" title="BasicSocket (class)">BasicSocket</a></span></span>
57      
95    
96      <strong class="classes">Classes:</strong> <span class='object_link'><a href="Socket/AncillaryData.html" title="Socket::AncillaryData (class)">AncillaryData</a></span>, <span class='object_link'><a href="Socket/Option.html" title="Socket::Option (class)">Option</a></span>
97    
784  <h3 class="inherited">Methods inherited from <span class='object_link'><a href="BasicSocket.html" title="BasicSocket (class)">BasicSocket</a></span></h3>
785  <p class="inherited"><span class='object_link'><a href="BasicSocket.html#close_read-instance_method" title="BasicSocket#close_read (method)">#close_read</a></span>, <span class='object_link'><a href="BasicSocket.html#close_write-instance_method" title="BasicSocket#close_write (method)">#close_write</a></span>, <span class='object_link'><a href="BasicSocket.html#do_not_reverse_lookup-instance_method" title="BasicSocket#do_not_reverse_lookup (method)">#do_not_reverse_lookup</a></span>, <span class='object_link'><a href="BasicSocket.html#do_not_reverse_lookup-class_method" title="BasicSocket.do_not_reverse_lookup (method)">do_not_reverse_lookup</a></span>, <span class='object_link'><a href="BasicSocket.html#do_not_reverse_lookup%3D-class_method" title="BasicSocket.do_not_reverse_lookup= (method)">do_not_reverse_lookup=</a></span>, <span class='object_link'><a href="BasicSocket.html#do_not_reverse_lookup%3D-instance_method" title="BasicSocket#do_not_reverse_lookup= (method)">#do_not_reverse_lookup=</a></span>, <span class='object_link'><a href="BasicSocket.html#for_fd-class_method" title="BasicSocket.for_fd (method)">for_fd</a></span>, <span class='object_link'><a href="BasicSocket.html#getpeereid-instance_method" title="BasicSocket#getpeereid (method)">#getpeereid</a></span>, <span class='object_link'><a href="BasicSocket.html#getpeername-instance_method" title="BasicSocket#getpeername (method)">#getpeername</a></span>, <span class='object_link'><a href="BasicSocket.html#getsockname-instance_method" title="BasicSocket#getsockname (method)">#getsockname</a></span>, <span class='object_link'><a href="BasicSocket.html#getsockopt-instance_method" title="BasicSocket#getsockopt (method)">#getsockopt</a></span>, <span class='object_link'><a href="BasicSocket.html#local_address-instance_method" title="BasicSocket#local_address (method)">#local_address</a></span>, <span class='object_link'><a href="BasicSocket.html#recv-instance_method" title="BasicSocket#recv (method)">#recv</a></span>, <span class='object_link'><a href="BasicSocket.html#recv_nonblock-instance_method" title="BasicSocket#recv_nonblock (method)">#recv_nonblock</a></span>, <span class='object_link'><a href="BasicSocket.html#recvmsg-instance_method" title="BasicSocket#recvmsg (method)">#recvmsg</a></span>, <span class='object_link'><a href="BasicSocket.html#recvmsg_nonblock-instance_method" title="BasicSocket#recvmsg_nonblock (method)">#recvmsg_nonblock</a></span>, <span class='object_link'><a href="BasicSocket.html#remote_address-instance_method" title="BasicSocket#remote_address (method)">#remote_address</a></span>, <span class='object_link'><a href="BasicSocket.html#send-instance_method" title="BasicSocket#send (method)">#send</a></span>, <span class='object_link'><a href="BasicSocket.html#sendmsg-instance_method" title="BasicSocket#sendmsg (method)">#sendmsg</a></span>, <span class='object_link'><a href="BasicSocket.html#sendmsg_nonblock-instance_method" title="BasicSocket#sendmsg_nonblock (method)">#sendmsg_nonblock</a></span>, <span class='object_link'><a href="BasicSocket.html#setsockopt-instance_method" title="BasicSocket#setsockopt (method)">#setsockopt</a></span>, <span class='object_link'><a href="BasicSocket.html#shutdown-instance_method" title="BasicSocket#shutdown (method)">#shutdown</a></span></p>
786
2311 *   Socket.pair(domain, type, protocol)       =&gt; [socket1, socket2]
2312 *   Socket.socketpair(domain, type, protocol) =&gt; [socket1, socket2]
2313 *
2619 *   Socket.pair(domain, type, protocol)       =&gt; [socket1, socket2]
2620 *   Socket.socketpair(domain, type, protocol) =&gt; [socket1, socket2]
2621 *
laddermanager.py https://github.com/renemilk/SpringLadder.git | Python | 825 lines
28
29def saychannel( socket, channel, message ):
30		for line in message.split('\n'):
31			mInfo( "Channel :%s, Message: %s" %(channel,line) )
32			socket.send("SAY %s %s\n" %(channel,line) )
33
77
78	def notifyuser( self, socket, fromwho, fromwhere, ispm, message ):
79		if fromwhere == "main" or fromwhere == "newbies":
81		if not ispm:
82			saychannel( socket, fromwhere, message )
83		else:
83		else:
84			pm( socket, fromwho, message )
85
ladderslave.py https://github.com/renemilk/SpringLadder.git | Python | 743 lines
45
46def sendstatus(self, socket ):
47	if self.ingame:
47	if self.ingame:
48		socket.send("MYSTATUS 1\n")
49	else:
49	else:
50		socket.send("MYSTATUS 0\n")
51
76	hostport = 0
77	def startspring(self,socket,g):
78		currentworkingdir = os.getcwd()
87			if self.ingame == True:
88				self.saybattle( self.socket, self.battleid, "Error: game is already running")
89				return
socket.lisp https://github.com/galdor/llio.git | Lisp | 254 lines
148(defun socket-set-option (socket option type value)
149  (check-return-code (%setsockopt (socket-fd socket) sol-socket
150                                  (foreign-enum-value 'socket-option option)
174(defun socket-set-option-reuseaddr (socket enable)
175  (socket-set-bool-option socket :so-reuseaddr enable))
176
212    (setf (mem-ref %size 'socklen-t) (foreign-type-size type))
213    (check-return-code (%getsockopt (socket-fd socket) sol-socket
214                                    (foreign-enum-value 'socket-option option)
224
225(defun socket-set-non-blocking (socket)
226  (with-slots (fd) socket
232
233(defun socket-read (socket count buffer)
234  "Read a up to COUNT bytes from SOCKET, append them to BUFFER, then return
test_core.py https://github.com/gabrielfalcao/HTTPretty.git | Python | 611 lines
174
175def test_fake_ssl_socket_proxies_its_ow_socket():
176    ("FakeSSLSocket is a simpel wrapper around its own socket, "
300@patch('httpretty.core.old_socket')
301def test_fakesock_socket_real_sendall(old_socket):
302    ("fakesock.socket#real_sendall calls truesock#connect and bails "
366@patch('httpretty.core.socket')
367def test_fakesock_socket_real_sendall_continue_eagain_when_http(socket, old_socket):
368    ("fakesock.socket#real_sendall should continue if the socket error was EAGAIN")
401@patch('httpretty.core.socket')
402def test_fakesock_socket_real_sendall_socket_error_when_http(socket, old_socket):
403    ("fakesock.socket#real_sendall should continue if the socket error was EAGAIN")
575@patch('httpretty.core.POTENTIAL_HTTP_PORTS')
576def test_fakesock_socket_sendall_with_body_data_with_chunked_entry(POTENTIAL_HTTP_PORTS, old_socket, match_uriinfo):
577    ("fakesock.socket#sendall should call real_sendall when not ")
ZMQ.java https://github.com/thijsterlouw/jzmq.git | Java | 1,044 lines
43
44    // Socket types, used when creating a Socket.
45    /**
275         * The 'ZMQ_TYPE option shall retrieve the socket type for the specified
276         * 'socket'.  The socket type is specified at socket creation time and
277         * cannot be modified afterwards.
810
811            this.sockets[pos] = socket;
812            this.events[pos] = (short) events;
990
991            this.sockets = new Socket [this.size];
992            this.events = new short [this.size];
1010         */
1011        private native long run_poll (int count, Socket [] sockets, short [] events, short [] revents, long timeout);
1012
net.lisp https://github.com/dochang/debian-clfswm.git | Lisp | 782 lines
374    #-(or abcl allegro clisp cmu gcl lispworks mcl ccl
375          (and sbcl (or net.sbcl.sockets db-sockets sb-bsd-sockets)) scl)
376    (error 'not-implemented :proc (list 'open-socket host port bin))))
510  #+(and sbcl net.sbcl.sockets)
511  (net.sbcl.sockets:make-socket 'net.sbcl.sockets:passive-socket :port port)
512  #+(and sbcl sb-bsd-sockets)
615  #+(and sbcl net.sbcl.sockets) (close server)
616  #+(and sbcl sb-bsd-sockets) (sb-bsd-sockets:socket-close server)
617  #-(or abcl allegro clisp cmu gcl lispworks openmcl ccl
691  #+(and sbcl net.sbcl.sockets)
692  (net.sbcl.sockets:make-socket 'net.sbcl.sockets:unix-stream-socket
693                                :buffering :full :path path :type kind)
696    (sockets:socket-connect socket path)
697    (sockets:socket-make-stream socket :input t :output t
698                                :buffering :none
transports.websocket.test.js https://github.com/lahorichargha/socket.io.git | JavaScript | 1,895 lines
21module.exports = {
22  'websocket identifies as websocket': function (done) {
23    var cl = client(++ports)
28    io.sockets.on('connection', function (socket) {
29      socket.manager.transports[socket.id].name.should.equal('websocket');
30      ws.finishClose();
168      var sid = data.split(':')[0];
169      var url = '/socket.io/' + sio.protocol + '/websocket/' + sid;
170      var req = cl.get(url, {headers: headers}, function (res, data) {});
1832
1833    io.sockets.on('connection', function (socket) {
1834      var self = this
1867
1868    io.sockets.on('connection', function (socket) {
1869      socket.transport.should.equal('websocket');
chapter2.txt https://github.com/tsellon/zguide.git | Unknown | 1,519 lines
118
119Sockets have types. The socket type defines the semantics of the socket, its policies for routing messages inwards and outwards, queueing, etc. You can connect certain types of socket together, e.g. a publisher socket and a subscriber socket. Sockets work together in "messaging patterns". We'll look at this in more detail later.
120
239
240There is a major difference between a 0MQ application and a conventional networked application, which is that you don't create one socket per connection. One socket handles all incoming and outcoming connections for a particular point of work. E.g. when you publish to a thousand subscribers, it's via one socket. When you distribute work among twenty services, it's via one socket. When you collect data from a thousand web applications, it's via one socket.
241
765
766There are two ways to connect multiple clients to multiple servers. The brute-force way is to connect each client socket to multiple service endpoints. One client socket can connect to multiple service sockets, and requests are load-balanced among these services. Let's say you connect a client socket to three service endpoints, A, B, and C. The client makes requests R1, R2, R3, R4. R1 and R4 go to service A, R2 goes to B, and R3 goes to service C.
767
958
959* You MUST NOT share 0MQ sockets between threads. 0MQ sockets are not threadsafe. Technically it's possible to do this, but it demands semaphores, locks, or mutexes. This will make your application slow and fragile. The only place where it's remotely sane to share sockets between threads are in language bindings that need to do magic like garbage collection on sockets.
960
1507
1508* When your socket reaches its high-water mark, it will either block or drop data depending on the socket type. PUB sockets will drop data if they reach their high-water mark, while other socket types will block.
1509
ZMQ.java https://github.com/kalpeshptl/jzmq.git | Java | 1,383 lines
47
48    // Socket types, used when creating a Socket.
49    /**
343         * The 'ZMQ_TYPE option shall retrieve the socket type for the specified
344         * 'socket'.  The socket type is specified at socket creation time and
345         * cannot be modified afterwards.
1138
1139            this.sockets[pos] = socket;
1140            this.events[pos] = (short) events;
1324
1325            this.sockets = new Socket [this.size];
1326            this.events = new short [this.size];
1349         */
1350        private native long run_poll (int count, Socket [] sockets, short [] events, short [] revents, long timeout);
1351
socket.rb https://github.com/dream-hunter/ruby.git | Ruby | 762 lines
344  #   # tcp_server_sockets returns two sockets.
345  #   sockets = Socket.tcp_server_sockets(1296)
346  #   p sockets #=> [#<Socket:fd 3>, #<Socket:fd 4>]
353  #   # IPv6 and IPv4 socket has same port number, 53114, even if it is choosen dynamically.
354  #   sockets = Socket.tcp_server_sockets(0)
355  #   sockets.each {|s| p s.local_address }
360  #   Socket.tcp_server_sockets(0) {|sockets|
361  #     p sockets #=> [#<Socket:fd 3>, #<Socket:fd 4>]
362  #   }
486  #   # UDP/IP echo server
487  #   Socket.udp_server_sockets(0) {|sockets|
488  #     p sockets.first.local_address.ip_port     #=> 32963
699  #
700  #   socket = Socket.unix_server_socket("/tmp/s")
701  #   p socket                  #=> #<Socket:fd 3>
test_socket_options.cpp https://github.com/datasift/zmqpp.git | C++ | 289 lines
14#define STRINGIFY(x) #x
15#define CHECK_SET(socket, type, option) check_set<type>(socket, zmqpp::socket_option::option, STRINGIFY(option), false)
16#define CHECK_SET_POSITIVE(socket, type, option) check_set<type>(socket, zmqpp::socket_option::option, STRINGIFY(option), true)
16#define CHECK_SET_POSITIVE(socket, type, option) check_set<type>(socket, zmqpp::socket_option::option, STRINGIFY(option), true)
17#define CHECK_GET(socket, type, option) check_get<type>(socket, zmqpp::socket_option::option, STRINGIFY(option))
18
19// Note the hacky abuse of the fact we don't have float options
20#define CHECK_NOSET(socket, option) check_set<float>(socket, zmqpp::socket_option::option, STRINGIFY(option), false)
21#define CHECK_NOGET(socket, option) check_get<float>(socket, zmqpp::socket_option::option, STRINGIFY(option))
62template<typename Type>
63void check_set(zmqpp::socket& socket, zmqpp::socket_option const& option, std::string const& option_name, bool positive_only)
64{
221	zmqpp::context context;
222	zmqpp::socket socket(context, zmqpp::socket_type::subscribe);
223	socket.bind("inproc://test");
network.cc https://github.com/brainburn/Dissent.git | C++ | 663 lines
448
449void NetworkPrepare::AddSocket(int node_id, QTcpSocket* socket){
450    _sockets->insert(node_id, socket);
486void NetworkPrepare::ReadNodeId(QObject* o){
487    QTcpSocket* socket = qobject_cast<QTcpSocket*>(o);
488    Q_ASSERT(socket);
572                _connectSignalMapper, SLOT(map()));
573        connect(socket, SIGNAL(error(QAbstractSocket::SocketError)),
574                _errorSignalMapper, SLOT(map()));
598    // XXX(scw): error message? retry count? wait before retry?
599    QTcpSocket* socket = qobject_cast<QTcpSocket*>(o);
600    Q_ASSERT(socket);
611void NetworkPrepare::ReadChallenge(QObject* o){
612    QTcpSocket* socket = qobject_cast<QTcpSocket*>(o);
613    Q_ASSERT(socket);
socket.test.js https://github.com/Unitech/Quizzy.git | JavaScript | 367 lines
105      var io = create()
106        , socket = io.socket
107        , namespaces = 2
139    'test disconnecting from namespaces': function (next) {
140      var socket = create().socket
141        , namespaces = 2
174    'test authorizing for namespaces': function (next) {
175      var socket = create().socket
176
300      socket.on('connect', function () {
301        socket.socket.setBuffer(true);
302        socket.send('単');
305        socket.send('単');
306        socket.socket.setBuffer(false);
307      });
rtmp_socket.erl https://github.com/MicronXD/erlyvideo.git | Erlang | 703 lines
266
267wait_for_socket_on_server({socket, Socket}, #rtmp_socket{} = State) when is_port(Socket) ->
268  case inet:setopts(Socket, [{active, once}, {packet, raw}, binary]) of
275      
276wait_for_socket_on_server({socket, Socket}, #rtmp_socket{} = State) when is_pid(Socket) ->
277  erlang:monitor(process, Socket),
286
287wait_for_socket_on_client({socket, Socket}, #rtmp_socket{} = State) ->
288  inet:setopts(Socket, [{active, once}, {packet, raw}, binary]),
458  
459handle_info({tcp, Socket, Data}, handshake_c1, #rtmp_socket{socket=Socket, buffer = Buffer, bytes_read = BytesRead} = State) ->
460  activate_socket(Socket),
513
514handle_info({tcp, Socket, CryptedData}, loop, #rtmp_socket{socket=Socket, buffer = Buffer, bytes_read = BytesRead, bytes_unack = BytesUnack, key_in = KeyIn} = State) ->
515  State1 = flush_send(State),
socket.h https://bitbucket.org/cttc-lena/ns-3-lena-dev | C++ Header | 1,235 lines
43 * \ingroup network
44 * \defgroup socket Socket
45 */
119   */
120  static Ptr<Socket> CreateSocket (Ptr<Node> node, TypeId tid);
121  /**
131    */
132  virtual enum Socket::SocketType GetSocketType (void) const = 0;
133  /**
622   * For IP_PKTINFO/IP6_PKTINFO. This method is only usable for 
623   * Raw socket and Datagram Socket. Not supported for Stream socket.
624   *
797   * This method corresponds to using setsockopt () IPV6_RECVHOPLIMIT of real
798   * network or BSD sockets. In our implementation, the socket simply 
799   * adds a SocketIpv6HopLimitTag tag to the packet before passing the
transports.websocket.test.js https://github.com/tkpage/oasys.git | JavaScript | 1,772 lines
34
35    io.sockets.on('connection', function (socket) {
36      socket.on('disconnect', function (reason) {
316
317    io.sockets.on('connection', function (socket) {
318      socket.volatile.emit('tobi');
1599      io.sockets.clients()[0].id.should.equal(ws1.sid);
1600      io.sockets.clients()[1].should.be.an.instanceof(sio.Socket);
1601      io.sockets.clients()[1].id.should.equal(ws2.sid);
1644
1645    io.sockets.on('connection', function (socket) {
1646      socket.on('disconnect', function () {
1740
1741    io.sockets.on('connection', function (socket) {
1742      var self = this
.jsdtscope https://github.com/alex3683/Cashpoint.git | Unknown | 63 lines
2<classpath>
3	<classpathentry excluding="node_modules/now/node_modules/socket.io/node_modules/socket.io-client/node_modules/uglify-js/test/|node_modules/now/node_modules/socket.io/lib/|node_modules/now/node_modules/socket.io/|node_modules/now/node_modules/socket.io/examples/chat/|node_modules/now/node_modules/node-proxy/test/|node_modules/now/node_modules/socket.io/node_modules/socket.io-client/node_modules/websocket-client/examples/|node_modules/now/node_modules/socket.io/examples/irc-output/|node_modules/now/node_modules/socket.io/node_modules/redis/examples/|node_modules/now/node_modules/socket.io/node_modules/socket.io-client/node_modules/xmlhttprequest/tests/|node_modules/now/node_modules/socket.io/node_modules/socket.io-client/support/|node_modules/now/node_modules/socket.io/node_modules/redis/lib/|node_modules/now/node_modules/socket.io/node_modules/policyfile/|node_modules/now/node_modules/socket.io/node_modules/socket.io-client/node_modules/uglify-js/test/unit/|node_modules/now/node_modules/socket.io/node_modules/policyfile/examples/|node_modules/now/node_modules/socket.io/node_modules/socket.io-client/node_modules/uglify-js/test/unit/compress/expected/|node_modules/now/node_modules/socket.io/node_modules/socket.io-client/support/test-runner/public/javascript/|node_modules/now/node_modules/socket.io/node_modules/policyfile/tests/|node_modules/now/node_modules/socket.io/node_modules/redis/tests/stress/pubsub/|node_modules/now/node_modules/node-proxy/examples/autoload-namespace/org/w3c/DOM/Document/String/|node_modules/now/lib/|node_modules/now/node_modules/socket.io/test/leaks/|node_modules/now/node_modules/socket.io/node_modules/redis/tests/stress/speed/|node_modules/now/node_modules/socket.io/support/node-websocket-client/examples/|node_modules/now/examples/express_example/|node_modules/now/node_modules/node-proxy/examples/autoload-namespace/|node_modules/now/node_modules/socket.io/node_modules/redis/tests/stress/|node_modules/now/node_modules/socket.io/node_modules/socket.io-client/dist/|node_modules/now/node_modules/socket.io/node_modules/socket.io-client/lib/vendor/web-socket-js/|node_modules/now/doc/jsdoc/javascript/|node_modules/now/node_modules/socket.io/test/|node_modules/now/node_modules/socket.io/node_modules/socket.io-client/node_modules/uglify-js/test/unit/compress/test/|node_modules/now/node_modules/socket.io/node_modules/socket.io-client/node_modules/uglify-js/lib/|node_modules/now/node_modules/socket.io/lib/stores/|node_modules/now/node_modules/socket.io/node_modules/redis/tests/stress/rpushblpop/|node_modules/now/node_modules/socket.io/node_modules/socket.io-client/bin/|node_modules/now/node_modules/socket.io/node_modules/socket.io-client/node_modules/uglify-js/|node_modules/now/node_modules/node-proxy/examples/autoload-namespace/org/w3c/DOM/|node_modules/now/node_modules/socket.io/node_modules/socket.io-client/support/test-runner/|node_modules/now/node_modules/socket.io/support/node-websocket-client/test/|node_modules/now/node_modules/socket.io/node_modules/socket.io-client/node_modules/websocket-client/test/|node_modules/now/node_modules/socket.io/node_modules/socket.io-client/test/node/|node_modules/now/node_modules/socket.io/node_modules/policyfile/lib/|node_modules/now/node_modules/socket.io/node_modules/redis/lib/parser/|node_modules/now/node_modules/socket.io/node_modules/socket.io-client/node_modules/xmlhttprequest/|node_modules/now/node_modules/socket.io/support/node-websocket-client/lib/|node_modules/now/lib/client/|node_modules/now/node_modules/socket.io/node_modules/socket.io-client/test/|node_modules/now/node_modules/socket.io/node_modules/socket.io-client/node_modules/websocket-client/lib/|node_modules/now/node_modules/socket.io/lib/transports/|node_modules/now/node_modules/socket.io/node_modules/redis/|node_modules/now/examples/helloworld_example/|node_modules/now/node_modules/socket.io/node_modules/socket.io-client/node_modules/uglify-js/tmp/|node_modules/now/examples/multiroomchat_example/|node_modules/now/node_modules/socket.io/node_modules/socket.io-client/lib/|node_modules/now/node_modules/socket.io/node_modules/redis/tests/|node_modules/now/node_modules/socket.io/node_modules/socket.io-client/lib/transports/" kind="src" path=""/>
4	<classpathentry kind="src" path="node_modules/now/doc/jsdoc/javascript"/>
13	<classpathentry kind="src" path="node_modules/now/node_modules/node-proxy/test"/>
14	<classpathentry excluding="node_modules/socket.io-client/node_modules/uglify-js/test/|lib/|examples/chat/|node_modules/socket.io-client/node_modules/websocket-client/examples/|examples/irc-output/|node_modules/redis/examples/|node_modules/socket.io-client/node_modules/xmlhttprequest/tests/|node_modules/socket.io-client/support/|node_modules/redis/lib/|node_modules/policyfile/|node_modules/socket.io-client/node_modules/uglify-js/test/unit/|node_modules/policyfile/examples/|node_modules/socket.io-client/node_modules/uglify-js/test/unit/compress/expected/|node_modules/socket.io-client/support/test-runner/public/javascript/|node_modules/policyfile/tests/|node_modules/redis/tests/stress/pubsub/|test/leaks/|node_modules/redis/tests/stress/speed/|support/node-websocket-client/examples/|node_modules/redis/tests/stress/|node_modules/socket.io-client/dist/|node_modules/socket.io-client/lib/vendor/web-socket-js/|test/|node_modules/socket.io-client/node_modules/uglify-js/test/unit/compress/test/|node_modules/socket.io-client/node_modules/uglify-js/lib/|lib/stores/|node_modules/redis/tests/stress/rpushblpop/|node_modules/socket.io-client/bin/|node_modules/socket.io-client/node_modules/uglify-js/|node_modules/socket.io-client/support/test-runner/|support/node-websocket-client/test/|node_modules/socket.io-client/node_modules/websocket-client/test/|node_modules/socket.io-client/test/node/|node_modules/policyfile/lib/|node_modules/redis/lib/parser/|node_modules/socket.io-client/node_modules/xmlhttprequest/|support/node-websocket-client/lib/|node_modules/socket.io-client/test/|node_modules/socket.io-client/node_modules/websocket-client/lib/|lib/transports/|node_modules/redis/|node_modules/socket.io-client/node_modules/uglify-js/tmp/|node_modules/socket.io-client/lib/|node_modules/redis/tests/|node_modules/socket.io-client/lib/transports/" kind="src" path="node_modules/now/node_modules/socket.io"/>
15	<classpathentry kind="src" path="node_modules/now/node_modules/socket.io/examples/chat"/>
34	<classpathentry kind="src" path="node_modules/now/node_modules/socket.io/node_modules/socket.io-client/dist"/>
35	<classpathentry excluding="vendor/web-socket-js/|transports/" kind="src" path="node_modules/now/node_modules/socket.io/node_modules/socket.io-client/lib"/>
36	<classpathentry kind="src" path="node_modules/now/node_modules/socket.io/node_modules/socket.io-client/lib/transports"/>
36	<classpathentry kind="src" path="node_modules/now/node_modules/socket.io/node_modules/socket.io-client/lib/transports"/>
37	<classpathentry kind="src" path="node_modules/now/node_modules/socket.io/node_modules/socket.io-client/lib/vendor/web-socket-js"/>
38	<classpathentry excluding="test/|test/unit/|test/unit/compress/expected/|test/unit/compress/test/|lib/|tmp/" kind="src" path="node_modules/now/node_modules/socket.io/node_modules/socket.io-client/node_modules/uglify-js"/>
46	<classpathentry kind="src" path="node_modules/now/node_modules/socket.io/node_modules/socket.io-client/node_modules/websocket-client/lib"/>
47	<classpathentry kind="src" path="node_modules/now/node_modules/socket.io/node_modules/socket.io-client/node_modules/websocket-client/test"/>
48	<classpathentry excluding="tests/" kind="src" path="node_modules/now/node_modules/socket.io/node_modules/socket.io-client/node_modules/xmlhttprequest"/>
socket.js https://bitbucket.org/kris-lab/npush-module.git | JavaScript | 302 lines
26		// SEND WELCOME MESSAGE
27		io.sockets.socket(socket.id).emit('announcement', socket.handshake.client_wellcome_msg);
28		// SET USER SOCKET PARAMETERS
31		socket.client = socket.handshake.client_room;	// THIS IS API KEY
32		socket.path = socket.handshake.client_room + '/' + socket.handshake.channel + '/' + socket.handshake.user_room;
33		socket.room = socket.handshake.user_room;
48		}
49		worker.nicknames[socket.handshake.client_room][socket.handshake.channel][socket.handshake.user_room][socket.handshake.user_id] = socket.nickname = socket.handshake.user_name;
50		// JOIN ROOM
159				// SEARCH FOR MESSAGES FOR ROOM
160				var _search_msg = ' { "date" : { "$gt" : ' + socket.user_last_activity + ' }, "room" : "/' + socket.client + '/' + socket.channel + '/' + socket.room + '/" } ';				
161				_search = JSON.parse(_search_msg);
219				// SEARCH FOR MESSAGES FOR ROOM
220				var _search_msg = ' { "date" : { "$gt" : ' + socket.user_last_activity + ' }, "room" : "/' + socket.client + '/' + socket.channel + '/' + socket.room + '/" } ';				
221				_search = JSON.parse(_search_msg);
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21