626,242 results for 'socket repo:rollcallnetworks/kinect-wallboards' (14 ms)
test_mem_cache.rb https://github.com/LeifWarner/memcache-client.git | Ruby | 1,324 lines
24 25class FakeSocket 26 89 @port = 11211 90 @socket = socket || FakeSocket.new 91 @weight = 1 278 def test_cache_get_miss 279 socket = FakeSocket.new 280 socket.data.write "END\r\n" 1094 def test_flush_all_failure 1095 socket = FakeSocket.new 1096 1125 def test_stats 1126 socket = FakeSocket.new 1127 socket.data.write "STAT pid 20188\r\nSTAT total_items 32\r\nSTAT version 1.2.3\r\nSTAT rusage_user 1:300\r\nSTAT dummy ok\r\nEND\r\n"transports.websocket.test.js https://github.com/felixge/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(); 39 40 'default websocket draft parser is used for unknown sec-websocket-version': function (done) { 41 var cl = client(++ports) 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) {}); 1868 io.sockets.on('connection', function (socket) { 1869 socket.transport.should.equal('websocket'); 1870test_mem_cache.rb https://github.com/alecslupu/Free-RPG-Engine-FaceBook-Game-App.git | Ruby | 1,221 lines
24 25class FakeSocket 26 89 @port = 11211 90 @socket = socket || FakeSocket.new 91 @weight = 1 278 def test_cache_get_miss 279 socket = FakeSocket.new 280 socket.data.write "END\r\n" 1027 def test_flush_all_failure 1028 socket = FakeSocket.new 1029 1058 def test_stats 1059 socket = FakeSocket.new 1060 socket.data.write "STAT pid 20188\r\nSTAT total_items 32\r\nSTAT version 1.2.3\r\nSTAT rusage_user 1:300\r\nSTAT dummy ok\r\nEND\r\n"index-14.html https://github.com/clwillingham/socket.io-java-client.git | HTML | 204 lines
85Method in class io.socket.<A HREF="../io/socket/IOConnection.html" title="class in io.socket">IOConnection</A> 86<DD>sends a String message from <A HREF="../io/socket/SocketIO.html" title="class in io.socket"><CODE>SocketIO</CODE></A> to the <A HREF="../io/socket/IOTransport.html" title="interface in io.socket"><CODE>IOTransport</CODE></A>. 87<DT><A HREF="../io/socket/IOConnection.html#send(io.socket.SocketIO, io.socket.IOAcknowledge, org.json.JSONObject)"><B>send(SocketIO, IOAcknowledge, JSONObject)</B></A> - 88Method in class io.socket.<A HREF="../io/socket/IOConnection.html" title="class in io.socket">IOConnection</A> 89<DD>sends a JSON message from <A HREF="../io/socket/SocketIO.html" title="class in io.socket"><CODE>SocketIO</CODE></A> to the <A HREF="../io/socket/IOTransport.html" title="interface in io.socket"><CODE>IOTransport</CODE></A>. 90<DT><A HREF="../io/socket/IOTransport.html#send(java.lang.String)"><B>send(String)</B></A> - 93<DT><A HREF="../io/socket/SocketIO.html#send(org.json.JSONObject)"><B>send(JSONObject)</B></A> - 94Method in class io.socket.<A HREF="../io/socket/SocketIO.html" title="class in io.socket">SocketIO</A> 95<DD>Send JSON data to the Socket.io server. 125<DD>Socket.io path. 126<DT><A HREF="../io/socket/SocketIO.html" title="class in io.socket"><B>SocketIO</B></A> - Class in <A HREF="../io/socket/package-summary.html">io.socket</A><DD>The Class SocketIO.<DT><A HREF="../io/socket/SocketIO.html#SocketIO()"><B>SocketIO()</B></A> - 127Constructor for class io.socket.<A HREF="../io/socket/SocketIO.html" title="class in io.socket">SocketIO</A> 140<DD>Instantiates a new socket.io connection. 141<DT><A HREF="../io/socket/SocketIOException.html" title="class in io.socket"><B>SocketIOException</B></A> - Exception in <A HREF="../io/socket/package-summary.html">io.socket</A><DD>The Class SocketIOException.<DT><A HREF="../io/socket/SocketIOException.html#SocketIOException(java.lang.String)"><B>SocketIOException(String)</B></A> - 142Constructor for exception io.socket.<A HREF="../io/socket/SocketIOException.html" title="class in io.socket">SocketIOException</A>SocketIO.html https://github.com/clwillingham/socket.io-java-client.git | HTML | 652 lines
131<TR BGCOLOR="white" CLASS="TableRowColor"> 132<TD><CODE><B><A HREF="../../io/socket/SocketIO.html#SocketIO(java.lang.String, io.socket.IOCallback)">SocketIO</A></B>(java.lang.String url, 133 <A HREF="../../io/socket/IOCallback.html" title="interface in io.socket">IOCallback</A> callback)</CODE> 163<CODE> void</CODE></FONT></TD> 164<TD><CODE><B><A HREF="../../io/socket/SocketIO.html#connect(io.socket.IOCallback)">connect</A></B>(<A HREF="../../io/socket/IOCallback.html" title="interface in io.socket">IOCallback</A> callback)</CODE> 165 391<DD>connects to supplied host using callback. Do only use this method if you 392 instantiate <A HREF="../../io/socket/SocketIO.html" title="class in io.socket"><CODE>SocketIO</CODE></A> using <A HREF="../../io/socket/SocketIO.html#SocketIO()"><CODE>SocketIO()</CODE></A>. 393<P> 408<DD>connects to supplied host using callback. Do only use this method if you 409 instantiate <A HREF="../../io/socket/SocketIO.html" title="class in io.socket"><CODE>SocketIO</CODE></A> using <A HREF="../../io/socket/SocketIO.html#SocketIO()"><CODE>SocketIO()</CODE></A>. 410<P> 422<DD>connects to an already set host. Do only use this method if you 423 instantiate <A HREF="../../io/socket/SocketIO.html" title="class in io.socket"><CODE>SocketIO</CODE></A> using <A HREF="../../io/socket/SocketIO.html#SocketIO(java.lang.String)"><CODE>SocketIO(String)</CODE></A> or 424 <A HREF="../../io/socket/SocketIO.html#SocketIO(java.net.URL)"><CODE>SocketIO(URL)</CODE></A>.IOConnection.html https://github.com/clwillingham/socket.io-java-client.git | HTML | 661 lines
162<CODE> void</CODE></FONT></TD> 163<TD><CODE><B><A HREF="../../io/socket/IOConnection.html#emit(io.socket.SocketIO, java.lang.String, io.socket.IOAcknowledge, java.lang.Object...)">emit</A></B>(<A HREF="../../io/socket/SocketIO.html" title="class in io.socket">SocketIO</A> socket, 164 java.lang.String event, 213<CODE> void</CODE></FONT></TD> 214<TD><CODE><B><A HREF="../../io/socket/IOConnection.html#register(io.socket.SocketIO)">register</A></B>(<A HREF="../../io/socket/SocketIO.html" title="class in io.socket">SocketIO</A> socket)</CODE> 215 230<CODE> void</CODE></FONT></TD> 231<TD><CODE><B><A HREF="../../io/socket/IOConnection.html#send(io.socket.SocketIO, io.socket.IOAcknowledge, org.json.JSONObject)">send</A></B>(<A HREF="../../io/socket/SocketIO.html" title="class in io.socket">SocketIO</A> socket, 232 <A HREF="../../io/socket/IOAcknowledge.html" title="interface in io.socket">IOAcknowledge</A> ack, 240<CODE> void</CODE></FONT></TD> 241<TD><CODE><B><A HREF="../../io/socket/IOConnection.html#send(io.socket.SocketIO, io.socket.IOAcknowledge, java.lang.String)">send</A></B>(<A HREF="../../io/socket/SocketIO.html" title="class in io.socket">SocketIO</A> socket, 242 <A HREF="../../io/socket/IOAcknowledge.html" title="interface in io.socket">IOAcknowledge</A> ack, 290<CODE> void</CODE></FONT></TD> 291<TD><CODE><B><A HREF="../../io/socket/IOConnection.html#unregister(io.socket.SocketIO)">unregister</A></B>(<A HREF="../../io/socket/SocketIO.html" title="class in io.socket">SocketIO</A> socket)</CODE> 292ZMQ.java https://github.com/nieksand/jzmq.git | Java | 1,415 lines
47 48 // Socket types, used when creating a Socket. 49 /** 375 * The 'ZMQ_TYPE option shall retrieve the socket type for the specified 376 * 'socket'. The socket type is specified at socket creation time and 377 * cannot be modified afterwards. 1170 1171 this.sockets[pos] = socket; 1172 this.events[pos] = (short) events; 1356 1357 this.sockets = new Socket [this.size]; 1358 this.events = new short [this.size]; 1381 */ 1382 private native long run_poll (int count, Socket [] sockets, short [] events, short [] revents, long timeout); 1383memcached.erl https://github.com/fauxsoup/memcached-client.git | Erlang | 876 lines
358 359call_with_socket(Fun, Key, Connections, CHash, _Socket) -> 360 case get_socket(Key, Connections, CHash) of 519handle_call({delete, Key}, _From, {Connections, CHash, Socket}) -> 520 {reply, delete_command(Socket, Key), {Connections, CHash, Socket}}; 521 563handle_call(quit, _From, {Connections, CHash, _Socket}) -> 564 lists:foreach(fun(Socket) -> gen_tcp:send(Socket, <<"quit\r\n">>) end, all_sockets(Connections)), 565 {reply, ok, {Connections, CHash, _Socket}}; 640terminate(_Reason, {Connections, _CHash, _Socket}) -> 641 lists:foreach(fun(Socket) -> gen_tcp:close(Socket) end, all_sockets(Connections)). 642 840 case X of 841 {_Server, Socket} when is_port(Socket) -> [Socket | Accum]; 842 {_Host, _Port} ->NetUtils.java https://github.com/johnsonchengwu/hadoop-common.git | Java | 489 lines
106 */ 107 public static SocketFactory getSocketFactoryFromProperty( 108 Configuration conf, String propValue) { 324 return (socket.getChannel() == null) ? 325 socket.getInputStream() : new SocketInputStream(socket, timeout); 326 } 375 return (socket.getChannel() == null) ? 376 socket.getOutputStream() : new SocketOutputStream(socket, timeout); 377 } 380 * This is a drop-in replacement for 381 * {@link Socket#connect(SocketAddress, int)}. 382 * In the case of normal sockets that don't have associated channels, this 389 * 390 * @see java.net.Socket#connect(java.net.SocketAddress, int) 391 *ardublock.xml https://github.com/haobug/ardublock.git | XML | 3,101 lines
117 <BlockConnector connector-type="string" 118 connector-kind="socket" /> 119 </BlockConnectors> 130 <BlockConnector connector-type="number" 131 connector-kind="socket" /> 132 </BlockConnectors> 143 <BlockConnector connector-type="boolean" 144 connector-kind="socket" /> 145 </BlockConnectors> 156 <BlockConnectors> 157 <BlockConnector connector-type="cmd" connector-kind="socket" 158 label="bc.do" /> 168 <BlockConnector connector-type="number" 169 connector-kind="socket" label="#"> 170 <DefaultArg genus-name="number" label="1" />ZMQ.java https://github.com/s-faychatelard/API.git | Java | 1,601 lines
283 * The 'ZMQ_TYPE option shall retrieve the socket type for the specified 284 * 'socket'. The socket type is specified at socket creation time and 285 * cannot be modified afterwards. 1270 */ 1271 public Socket getSocket (int index) { 1272 if (index < 0 || index >= this.next) 1454 PollItem target = (PollItem) obj; 1455 if (socket != null && socket == target.socket) 1456 return true; 1457 1458 if (getRawSocket () != null && getRawSocket () == target.getRawSocket ()) 1459 return true; 1521 */ 1522 public static boolean proxy (Socket frontend, Socket backend, Socket capture) 1523 {ZMQ.java https://github.com/s-faychatelard/API.git | Java | 1,722 lines
51 52 // Socket types, used when creating a Socket. 53 /** 217 */ 218 public Socket socket(int type) { 219 return new Socket(this, type); 300 * The 'ZMQ_TYPE option shall retrieve the socket type for the specified 301 * 'socket'. The socket type is specified at socket creation time and 302 * cannot be modified afterwards. 1440 */ 1441 public Socket getSocket (int index) { 1442 if (index < 0 || index >= this.next) 1443 return null; 1444 return new Socket(items [index].getSocket ()); 1445 }ZMQ.java https://github.com/tfishwick/jzmq.git | Java | 1,896 lines
205 */ 206 public static void proxy(Socket frontend, Socket backend, Socket capture) { 207 if (ZMQ.version_full() < ZMQ.make_version(3, 2, 2)) 275 276 private static native void run_proxy(Socket frontend, Socket backend, Socket capture); 277 436 /** 437 * The 'ZMQ_TYPE option shall retrieve the socket type for the specified 'socket'. The socket type is specified 438 * at socket creation time and cannot be modified afterwards. 1518 PollItem target = (PollItem) obj; 1519 if (socket != null && socket == target.socket) 1520 return true; 1671 } 1672 if (item.socket == socket || item.channel == socket) { 1673 this.items[i] = null;transformer.base.js https://github.com/primus/primus.git | JavaScript | 1,405 lines
43 destroy = services.destroy; 44 Socket = services.Socket; 45 server = services.server; 277 it('receives the raw packet data', function (done) { 278 var socket = new Socket(server.addr); 279 1335 1336 var socket = new Socket(server.addr); 1337 }); 1362 1363 var socket = new Socket(server.addr); 1364 socket.write('foo'); 1382 1383 var socket = new Socket(server.addr); 1384 socket.write('foo');AprEndpoint.java https://github.com/kanishin/tomcat.git | Java | 2,294 lines
738 if (socketProperties.getSoLingerOn() && socketProperties.getSoLingerTime() >= 0) 739 Socket.optSet(socket, Socket.APR_SO_LINGER, socketProperties.getSoLingerTime()); 740 if (socketProperties.getTcpNoDelay()) 740 if (socketProperties.getTcpNoDelay()) 741 Socket.optSet(socket, Socket.APR_TCP_NODELAY, (socketProperties.getTcpNoDelay() ? 1 : 0)); 742 Socket.timeoutSet(socket, socketProperties.getSoTimeout() * 1000); 856 if (waitingRequests.remove(socket)) { 857 SocketProcessor proc = new SocketProcessor(socket, status); 858 ClassLoader loader = Thread.currentThread().getContextClassLoader(); 2167 if (!deferAccept) { 2168 if (setSocketOptions(socket.getSocket().longValue())) { 2169 getPoller().add(socket.getSocket().longValue(), 2259 socket.access(); 2260 SocketProcessor proc = new SocketProcessor(socket, 2261 SocketStatus.OPEN_READ);net_utils_unittest.py https://github.com/manul7/autotest.git | Python | 1,326 lines
87 self.god.stub_function(socket, 'socket') 88 s = net_utils_mock.socket_stub('eth0', socket, socket) 89 socket.socket.expect_call(socket.PF_PACKET, 1046 socket.setdefaulttimeout.expect_call(1) 1047 socket.socket.expect_call(socket.PF_PACKET, 1048 socket.SOCK_RAW, 1108 # on going, added a socket stub 1109 s = net_utils_mock.socket_stub('eth0', socket, socket) 1110 socket.socket.expect_call(socket.PF_PACKET, 1156 self.god.stub_function(socket, 'setdefaulttimeout') 1157 self.god.create_mock_class(socket.socket, "socket") 1158 self.god.stub_function(socket, 'socket') 1260 s = net_utils_mock.socket_stub('eth0', socket, socket) 1261 socket.socket.expect_call(socket.PF_PACKET, 1262 socket.SOCK_RAW,Makefile https://github.com/Krozark/cpp-Socket.git | Makefile | 513 lines
323Socket.cpp.o: 324 cd /home/maxime/Bureau/documents/git/cpp-Socket && $(MAKE) -f src/Socket/CMakeFiles/socket.dir/build.make src/Socket/CMakeFiles/socket.dir/Socket.cpp.o 325 cd /home/maxime/Bureau/documents/git/cpp-Socket && $(MAKE) -f src/Socket/CMakeFiles/socket-static.dir/build.make src/Socket/CMakeFiles/socket-static.dir/Socket.cpp.o 332Socket.cpp.i: 333 cd /home/maxime/Bureau/documents/git/cpp-Socket && $(MAKE) -f src/Socket/CMakeFiles/socket.dir/build.make src/Socket/CMakeFiles/socket.dir/Socket.cpp.i 334 cd /home/maxime/Bureau/documents/git/cpp-Socket && $(MAKE) -f src/Socket/CMakeFiles/socket-static.dir/build.make src/Socket/CMakeFiles/socket-static.dir/Socket.cpp.i 342 cd /home/maxime/Bureau/documents/git/cpp-Socket && $(MAKE) -f src/Socket/CMakeFiles/socket.dir/build.make src/Socket/CMakeFiles/socket.dir/Socket.cpp.s 343 cd /home/maxime/Bureau/documents/git/cpp-Socket && $(MAKE) -f src/Socket/CMakeFiles/socket-static.dir/build.make src/Socket/CMakeFiles/socket-static.dir/Socket.cpp.s 344.PHONY : Socket.cpp.s 350SocketSerialized.cpp.o: 351 cd /home/maxime/Bureau/documents/git/cpp-Socket && $(MAKE) -f src/Socket/CMakeFiles/socket.dir/build.make src/Socket/CMakeFiles/socket.dir/SocketSerialized.cpp.o 352 cd /home/maxime/Bureau/documents/git/cpp-Socket && $(MAKE) -f src/Socket/CMakeFiles/socket-static.dir/build.make src/Socket/CMakeFiles/socket-static.dir/SocketSerialized.cpp.o 369 cd /home/maxime/Bureau/documents/git/cpp-Socket && $(MAKE) -f src/Socket/CMakeFiles/socket.dir/build.make src/Socket/CMakeFiles/socket.dir/SocketSerialized.cpp.s 370 cd /home/maxime/Bureau/documents/git/cpp-Socket && $(MAKE) -f src/Socket/CMakeFiles/socket-static.dir/build.make src/Socket/CMakeFiles/socket-static.dir/SocketSerialized.cpp.s 371.PHONY : SocketSerialized.cpp.sNfcService.java https://github.com/Cafogen/android_packages_apps_Nfc.git | Java | 3,102 lines
507 /* Add the socket into the socket map */ 508 mSocketMap.put(mGeneratedSocketHandle, socket); 509 return mGeneratedSocketHandle; 583 /* Add the socket into the socket map */ 584 mSocketMap.put(mGeneratedSocketHandle, socket); 585 return mGeneratedSocketHandle; 864 865 private final ILlcpSocket mLlcpSocket = new ILlcpSocket.Stub() { 866 1106 1107 private final ILlcpServiceSocket mLlcpServerSocketService = new ILlcpServiceSocket.Stub() { 1108 1131 if (socket != null) { 1132 clientSocket = socket.doAccept(socket.getMiu(), 1133 socket.getRw(), socket.getLinearBufferLength());XnWin32Network.cpp https://github.com/jspricke/OpenNI2.git | C++ | 519 lines
92 93XN_C_API XnStatus xnOSCreateSocket(const XnOSSocketType SocketType, const XnChar* cpIPAddress, const XnUInt16 nPort, XN_SOCKET_HANDLE* SocketPtr) 94{ 196 // Bind the socket and make sure it succeeded 197 nRetVal = bind(Socket->Socket, (SOCKADDR*)&Socket->SocketAddress, sizeof(Socket->SocketAddress)); 198 if (nRetVal == SOCKET_ERROR) 240 241XN_C_API XnStatus xnOSAcceptSocket(XN_SOCKET_HANDLE ListenSocket, XN_SOCKET_HANDLE* AcceptSocketPtr, XnUInt32 nMillisecondsTimeout) 242{ 279 AcceptSocket->nSocketAddressLen = sizeof(AcceptSocket->SocketAddress); 280 AcceptSocket->Socket = accept(ListenSocket->Socket, (sockaddr*)&AcceptSocket->SocketAddress, &AcceptSocket->nSocketAddressLen); 281 if (AcceptSocket->Socket == INVALID_SOCKET) 308 // Connect to the socket and make sure it succeeded 309 xnOSMemCopy(&SocketAddress, &Socket->SocketAddress, sizeof(SocketAddress)); 310zmq_getsockopt.txt https://github.com/unixcrh/libzmq.git | Unknown | 532 lines
7 8zmq_getsockopt - get 0MQ socket options 9 31The 'ZMQ_TYPE' option shall retrieve the socket type for the specified 32'socket'. The socket type is specified at socket creation time and 33cannot be modified afterwards. 68blocking or dropping sent messages. Refer to the individual socket descriptions 69in linkzmq:zmq_socket[3] for details on the exact action taken for each socket 70type. 89blocking or dropping sent messages. Refer to the individual socket descriptions 90in linkzmq:zmq_socket[3] for details on the exact action taken for each socket 91type. 331Retrieve the IPv6 option for the socket. A value of `1` means IPv6 is 332enabled on the socket, while `0` means the socket will use only IPv4. 333When IPv6 is enabled the socket will connect to, or accept connections