PageRenderTime 1568ms queryFilters 0ms Sphinxql 694ms GetByIds 443ms meta 0ms repositoryFilters 304ms languageFilters 2ms sourceFilters 0ms

4,451 results for 'socket' (1568 ms)

Source

Language

Repository

GCDAsyncUdpSocket.h https://gitlab.com/mba811/tokaidoapp.git | C Header | 920 lines
121 * The socket queue is optional.
122 * If you pass NULL, GCDAsyncSocket will automatically create its own socket queue.
123 * If you choose to provide a socket queue, the socket queue must not be a concurrent queue.
893**/
894- (void)udpSocket:(GCDAsyncUdpSocket *)sock didNotConnect:(NSError *)error;
895
898**/
899- (void)udpSocket:(GCDAsyncUdpSocket *)sock didSendDataWithTag:(long)tag;
900
904**/
905- (void)udpSocket:(GCDAsyncUdpSocket *)sock didNotSendDataWithTag:(long)tag dueToError:(NSError *)error;
906
909**/
910- (void)udpSocket:(GCDAsyncUdpSocket *)sock didReceiveData:(NSData *)data
911                                             fromAddress:(NSData *)address
GCDAsyncSocket.h https://gitlab.com/mba811/tokaidoapp.git | C Header | 1,070 lines
161 * The socket queue is optional.
162 * If you pass NULL, GCDAsyncSocket will automatically create it's own socket queue.
163 * If you choose to provide a socket queue, the socket queue must not be a concurrent queue.
948 * This method is called immediately prior to socket:didAcceptNewSocket:.
949 * It optionally allows a listening socket to specify the socketQueue for a new accepted socket.
950 * If this method is not implemented, or returns NULL, the new accepted socket will create its own default queue.
964**/
965- (dispatch_queue_t)newSocketQueueForConnectionFromAddress:(NSData *)address onSocket:(GCDAsyncSocket *)sock;
966
976**/
977- (void)socket:(GCDAsyncSocket *)sock didAcceptNewSocket:(GCDAsyncSocket *)newSocket;
978
1025**/
1026- (NSTimeInterval)socket:(GCDAsyncSocket *)sock shouldTimeoutReadWithTag:(long)tag
1027                                                                 elapsed:(NSTimeInterval)elapsed
GCDAsyncUdpSocket.h https://gitlab.com/mba811/tokaidoapp.git | C Header | 920 lines
121 * The socket queue is optional.
122 * If you pass NULL, GCDAsyncSocket will automatically create its own socket queue.
123 * If you choose to provide a socket queue, the socket queue must not be a concurrent queue.
893**/
894- (void)udpSocket:(GCDAsyncUdpSocket *)sock didNotConnect:(NSError *)error;
895
898**/
899- (void)udpSocket:(GCDAsyncUdpSocket *)sock didSendDataWithTag:(long)tag;
900
904**/
905- (void)udpSocket:(GCDAsyncUdpSocket *)sock didNotSendDataWithTag:(long)tag dueToError:(NSError *)error;
906
909**/
910- (void)udpSocket:(GCDAsyncUdpSocket *)sock didReceiveData:(NSData *)data
911                                             fromAddress:(NSData *)address
GCDAsyncSocket.h https://gitlab.com/mba811/tokaidoapp.git | C Header | 1,070 lines
161 * The socket queue is optional.
162 * If you pass NULL, GCDAsyncSocket will automatically create it's own socket queue.
163 * If you choose to provide a socket queue, the socket queue must not be a concurrent queue.
948 * This method is called immediately prior to socket:didAcceptNewSocket:.
949 * It optionally allows a listening socket to specify the socketQueue for a new accepted socket.
950 * If this method is not implemented, or returns NULL, the new accepted socket will create its own default queue.
964**/
965- (dispatch_queue_t)newSocketQueueForConnectionFromAddress:(NSData *)address onSocket:(GCDAsyncSocket *)sock;
966
976**/
977- (void)socket:(GCDAsyncSocket *)sock didAcceptNewSocket:(GCDAsyncSocket *)newSocket;
978
1025**/
1026- (NSTimeInterval)socket:(GCDAsyncSocket *)sock shouldTimeoutReadWithTag:(long)tag
1027                                                                 elapsed:(NSTimeInterval)elapsed
GCDAsyncUdpSocket.h https://gitlab.com/mba811/tokaidoapp.git | C Header | 920 lines
121 * The socket queue is optional.
122 * If you pass NULL, GCDAsyncSocket will automatically create its own socket queue.
123 * If you choose to provide a socket queue, the socket queue must not be a concurrent queue.
893**/
894- (void)udpSocket:(GCDAsyncUdpSocket *)sock didNotConnect:(NSError *)error;
895
898**/
899- (void)udpSocket:(GCDAsyncUdpSocket *)sock didSendDataWithTag:(long)tag;
900
904**/
905- (void)udpSocket:(GCDAsyncUdpSocket *)sock didNotSendDataWithTag:(long)tag dueToError:(NSError *)error;
906
909**/
910- (void)udpSocket:(GCDAsyncUdpSocket *)sock didReceiveData:(NSData *)data
911                                             fromAddress:(NSData *)address
GCDAsyncSocket.h https://gitlab.com/mba811/tokaidoapp.git | C Header | 1,070 lines
161 * The socket queue is optional.
162 * If you pass NULL, GCDAsyncSocket will automatically create it's own socket queue.
163 * If you choose to provide a socket queue, the socket queue must not be a concurrent queue.
948 * This method is called immediately prior to socket:didAcceptNewSocket:.
949 * It optionally allows a listening socket to specify the socketQueue for a new accepted socket.
950 * If this method is not implemented, or returns NULL, the new accepted socket will create its own default queue.
964**/
965- (dispatch_queue_t)newSocketQueueForConnectionFromAddress:(NSData *)address onSocket:(GCDAsyncSocket *)sock;
966
976**/
977- (void)socket:(GCDAsyncSocket *)sock didAcceptNewSocket:(GCDAsyncSocket *)newSocket;
978
1025**/
1026- (NSTimeInterval)socket:(GCDAsyncSocket *)sock shouldTimeoutReadWithTag:(long)tag
1027                                                                 elapsed:(NSTimeInterval)elapsed
AsyncUdpSocket.html https://gitlab.com/mba811/tokaidoapp.git | HTML | 1,995 lines
388		<code><a href="#//api/name/isIPv6">&ndash;&nbsp;isIPv6</a></code>
389		<span class="tooltip"><p>Returns whether or not this socket supports IPv6.<br/>
390By default this will be true, unless the socket is specifically initialized as IPv4 only,<br/>
554		<code><a href="#//api/name/runLoopModes">&ndash;&nbsp;runLoopModes</a></code>
555		<span class="tooltip"><p>Returns the current run loop modes the <a href="../Classes/AsyncSocket.html">AsyncSocket</a> instance is operating in.<br/>
556The default set of run loop modes is NSDefaultRunLoopMode.</p></span>
865
866<p>Connecting a UDP socket does not result in any communication on the socket.<br/>
867It simply changes the internal state of the socket.</p>
1614	<div class="method-subsection brief-description">
1615		<p>Returns the current run loop modes the <a href="../Classes/AsyncSocket.html">AsyncSocket</a> instance is operating in.<br/>
1616The default set of run loop modes is NSDefaultRunLoopMode.</p>
1632		<h4 class="method-subtitle">Discussion</h4>
1633		<p>Returns the current run loop modes the <a href="../Classes/AsyncSocket.html">AsyncSocket</a> instance is operating in.<br/>
1634The default set of run loop modes is NSDefaultRunLoopMode.</p>
AsyncUdpSocket.html https://gitlab.com/mba811/tokaidoapp.git | HTML | 1,995 lines
388		<code><a href="#//api/name/isIPv6">&ndash;&nbsp;isIPv6</a></code>
389		<span class="tooltip"><p>Returns whether or not this socket supports IPv6.<br/>
390By default this will be true, unless the socket is specifically initialized as IPv4 only,<br/>
554		<code><a href="#//api/name/runLoopModes">&ndash;&nbsp;runLoopModes</a></code>
555		<span class="tooltip"><p>Returns the current run loop modes the <a href="../Classes/AsyncSocket.html">AsyncSocket</a> instance is operating in.<br/>
556The default set of run loop modes is NSDefaultRunLoopMode.</p></span>
865
866<p>Connecting a UDP socket does not result in any communication on the socket.<br/>
867It simply changes the internal state of the socket.</p>
1614	<div class="method-subsection brief-description">
1615		<p>Returns the current run loop modes the <a href="../Classes/AsyncSocket.html">AsyncSocket</a> instance is operating in.<br/>
1616The default set of run loop modes is NSDefaultRunLoopMode.</p>
1632		<h4 class="method-subtitle">Discussion</h4>
1633		<p>Returns the current run loop modes the <a href="../Classes/AsyncSocket.html">AsyncSocket</a> instance is operating in.<br/>
1634The default set of run loop modes is NSDefaultRunLoopMode.</p>
WINNET.C https://gitlab.com/mba811/TortoiseGit.git | C | 1,826 lines
31 * abstract, Socket no longer means a tcp socket (it could mean
32 * an ssl socket).  So now we must use Actual_Socket when we know
33 * we are talking about a tcp socket.
34 */
35typedef struct Socket_tag *Actual_Socket;
36
123{
124    Actual_Socket a = (Actual_Socket) av, b = (Actual_Socket) bv;
125    unsigned long as = (unsigned long) a->s, bs = (unsigned long) b->s;
417      case WSAENOTSOCK:
418	return "Network error: Socket operation on non-socket";
419      case WSAEOPNOTSUPP:
1781
1782extern int socket_writable(SOCKET skt)
1783{
engine.io.js https://gitlab.com/mba811/static.git | JavaScript | 3,872 lines
128
129Socket.Socket = Socket;
130Socket.Transport = _dereq_('./transport');
191  var transport;
192  if (this.rememberUpgrade && Socket.priorWebsocketSuccess && this.transports.indexOf('websocket') != -1) {
193    transport = 'websocket';
284        if (!transport) return;
285        Socket.priorWebsocketSuccess = 'websocket' == transport.name;
286
380  this.readyState = 'open';
381  Socket.priorWebsocketSuccess = 'websocket' == this.transport.name;
382  this.emit('open');
3837
3838var WebSocket = global.WebSocket || global.MozWebSocket;
3839
mtxsocket.c https://gitlab.com/libreems-suite/megatunix.git | C | 2,160 lines
163	ENTER();
164	sock = g_socket_new(G_SOCKET_FAMILY_IPV4, G_SOCKET_TYPE_STREAM, G_SOCKET_PROTOCOL_TCP, &error);
165	if (!sock)
1081  */
1082G_MODULE_EXPORT void return_socket_error(GSocket *socket)
1083{
1098  */
1099G_MODULE_EXPORT void socket_get_rt_vars(GSocket *socket, gchar *arg2)
1100{
1515
1516	clientsocket = g_socket_new(G_SOCKET_FAMILY_IPV4, G_SOCKET_TYPE_STREAM, G_SOCKET_PROTOCOL_TCP, &error);
1517	if (!clientsocket)
1979	/*	printf ("Trying to open network port!\n");*/
1980	clientsocket = g_socket_new(G_SOCKET_FAMILY_IPV4, G_SOCKET_TYPE_STREAM, G_SOCKET_PROTOCOL_TCP, &error);
1981	if (!clientsocket)
uipc_socket.cc https://gitlab.com/jforge/osv.git | C++ | 3,583 lines
37 *
38 * soalloc() sets of socket layer state for a socket, called only by
39 * socreate() and sonewconn().  Socket layer private.
40 *
41 * sodealloc() tears down socket layer state for a socket, called only by
42 * sofree() and sonewconn().  Socket layer private.
74 * connected).  This is used internally by the socket layer when clearing
75 * listen socket queues (due to overflow or close on the listen socket), but
76 * is also a public interface protocols may use to abort connections in
3378 *
3379 * From the passive side, a socket is created with two queues of sockets:
3380 * so_incomp for connections in progress and so_comp for connections already
3561void
3562sotoxsocket(struct socket *so, struct xsocket *xso)
3563{
uipc_sockbuf.cc https://gitlab.com/jforge/osv.git | C++ | 1,120 lines
28 *
29 *	@(#)uipc_socket2.c	8.1 (Berkeley) 6/10/93
30 */
49/*
50 * Function pointer set by the AIO routines so that the socket buffer code
51 * can call back into the AIO module if it is loaded.
52 */
53void	(*aio_swake)(struct socket *, struct sockbuf *);
54
275 *
276 * Each socket contains two socket buffers: one for sending data and one for
277 * receiving data.  Each buffer contains a queue of mbufs, information about
1092/*
1093 * This does the same for socket buffers that sotoxsocket does for sockets:
1094 * generate an user-format data structure describing the socket buffer.  Note
socketvar.h https://gitlab.com/jforge/osv.git | C++ Header | 400 lines
74	short	so_type;		/* (a) generic type, see socket.h */
75	short	so_options;		/* from socket call, see socket.h */
76	short	so_linger;		/* time to linger while closing */
187/*
188 * Macros for sockets and socket buffering.
189 */
327int	soconnect(struct socket *so, struct bsd_sockaddr *nam, struct thread *td);
328int	soconnect2(struct socket *so1, struct socket *so2);
329int	socow_setup(struct mbuf *m0, struct uio *uio);
375int	soshutdown(struct socket *so, int how);
376void	sotoxsocket(struct socket *so, struct xsocket *xso);
377void	soupcall_clear(struct socket *so, int which);
380void	sowakeup(struct socket *so, struct sockbuf *sb);
381int	selsocket(struct socket *so, int events, struct timeval *tv,
382	    struct thread *td);
apr_network_io.h https://gitlab.com/intruxxer/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);
HttpSocketTest.php https://gitlab.com/intelij/restaurant-manager.git | PHP | 1,629 lines
210	public function tearDown() {
211		unset($this->Socket, $this->RequestSocket);
212	}
1120
1121		$r = $this->Socket->buildRequestLine(array('method' => 'GET', 'uri' => 'http://www.cakephp.org/search?q=socket'));
1122		$this->assertEquals("GET /search?q=socket HTTP/1.1\r\n", $r);
1335
1336		$r = $this->Socket->buildUri(array('host' => 'www.cakephp.org', 'path' => '/search', 'query' => array('q' => 'HttpSocket')));
1337		$this->assertEquals('http://www.cakephp.org/search?q=HttpSocket', $r);
1579/**
1580 * This tests asserts HttpSocket::reset() resets a HttpSocket instance to it's initial state (before Object::__construct
1581 * got executed)
1602/**
1603 * This tests asserts HttpSocket::reset(false) resets certain HttpSocket properties to their initial state (before
1604 * Object::__construct got executed).
GCDAsyncSocket.h https://gitlab.com/intelij/ChattAR-ios.git | C Header | 1,074 lines
801 * Here's how you would accomplish something like that:
802 * - (dispatch_queue_t)newSocketQueueForConnectionFromAddress:(NSData *)address onSocket:(GCDAsyncSocket *)sock
803 * {
811 * }
812 * - (void)socket:(GCDAsyncSocket *)sock didAcceptNewSocket:(GCDAsyncSocket *)newSocket
813 * {
958 * This method is called immediately prior to socket:didAcceptNewSocket:.
959 * It optionally allows a listening socket to specify the socketQueue for a new accepted socket.
960 * If this method is not implemented, or returns NULL, the new accepted socket will create its own default queue.
974**/
975- (dispatch_queue_t)newSocketQueueForConnectionFromAddress:(NSData *)address onSocket:(GCDAsyncSocket *)sock;
976
986**/
987- (void)socket:(GCDAsyncSocket *)sock didAcceptNewSocket:(GCDAsyncSocket *)newSocket;
988
QBGCDAsyncSocket.h https://gitlab.com/intelij/ChattAR-ios.git | C Header | 913 lines
191 * When a connection is accepted, a new instance of GCDAsyncSocket will be spawned to handle it,
192 * and the socket:didAcceptNewSocket: delegate method will be invoked.
193 * 
797 * This method is called immediately prior to socket:didAcceptNewSocket:.
798 * It optionally allows a listening socket to specify the socketQueue for a new accepted socket.
799 * If this method is not implemented, or returns NULL, the new accepted socket will create its own default queue.
813**/
814- (dispatch_queue_t)newSocketQueueForConnectionFromAddress:(NSData *)address onSocket:(QBGCDAsyncSocket *)sock;
815
825**/
826- (void)socket:(QBGCDAsyncSocket *)sock didAcceptNewSocket:(QBGCDAsyncSocket *)newSocket;
827
868**/
869- (NSTimeInterval)socket:(QBGCDAsyncSocket *)sock shouldTimeoutReadWithTag:(long)tag
870                                                                 elapsed:(NSTimeInterval)elapsed
QBGCDAsyncUdpSocket.h https://gitlab.com/intelij/ChattAR-ios.git | C Header | 1,000 lines
126 * The socket queue is optional.
127 * If you pass NULL, GCDAsyncSocket will automatically create its own socket queue.
128 * If you choose to provide a socket queue, the socket queue must not be a concurrent queue,
827 * Here's how you would accomplish something like that:
828 * - (dispatch_queue_t)newSocketQueueForConnectionFromAddress:(NSData *)address onSocket:(GCDAsyncSocket *)sock
829 * {
837 * }
838 * - (void)socket:(GCDAsyncSocket *)sock didAcceptNewSocket:(GCDAsyncSocket *)newSocket
839 * {
973**/
974- (void)udpSocket:(QBGCDAsyncUdpSocket *)sock didNotConnect:(NSError *)error;
975
978**/
979- (void)udpSocket:(QBGCDAsyncUdpSocket *)sock didSendDataWithTag:(long)tag;
980
WINNET.C https://gitlab.com/info29/tortoisegit.git | C | 1,877 lines
31 * abstract, Socket no longer means a tcp socket (it could mean
32 * an ssl socket).  So now we must use Actual_Socket when we know
33 * we are talking about a tcp socket.
34 */
35typedef struct Socket_tag *Actual_Socket;
36
124{
125    Actual_Socket a = (Actual_Socket) av, b = (Actual_Socket) bv;
126    unsigned long as = (unsigned long) a->s, bs = (unsigned long) b->s;
424      case WSAENOTSOCK:
425	return "Network error: Socket operation on non-socket";
426      case WSAEOPNOTSUPP:
1832
1833extern int socket_writable(SOCKET skt)
1834{
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21