PageRenderTime 33ms queryFilters 14ms Sphinxql 63ms app.CodeModel.GetByIds 23ms findMatchingLines 102ms GetByIds 125ms meta 0ms repositoryFilters 6ms languageFilters 4ms sourceFilters 3ms

626,242 results for 'socket repo:xk/FreeTDS' (33 ms)

Source

Language

Repository

socketLogic.js https://github.com/SYCCON/skynet.git | JavaScript | 844 lines
25function getDevice(socket, callback) {
26  console.log('getDevice socket info:', socket.id, socket.skynetDevice);
27
45  console.log('Websocket connection detected. Requesting identification from socket id: ', socket.id);
46  logEvent(100, {"socketid": socket.id, "protocol": "websocket"});
47
47
48  socket.emit('identify', { socketid: socket.id });
49  socket.on('identity', function (data) {
65
66          socket.emit('ready', {"api": "connect", "status": auth.status, "socketid": socket.id, "uuid": auth.device.uuid, "token": auth.device.token});
67          // Have device join its uuid room name so that others can subscribe to it
577
578        socket.emit('ready', {"api": "connect", "status": 201, "socketid": socket.id, "uuid": data.uuid});
579        console.log('subscribe: ' + data.uuid);
skynet.bundle.js https://github.com/SYCCON/skynet.git | JavaScript | 8,844 lines
90    this.socket.on('tb', this.emit.bind(this, 'tb'));
91    this.socket.on('unboundSocket', this.emit.bind(this, 'unboundSocket'));
92
1780
1781Socket.Socket = Socket;
1782Socket.Transport = _dereq_('./transport');
1841  var transport;
1842  if (this.rememberUpgrade && Socket.priorWebsocketSuccess && this.transports.indexOf('websocket') != -1) {
1843    transport = 'websocket';
2014  this.readyState = 'open';
2015  Socket.priorWebsocketSuccess = 'websocket' == this.transport.name;
2016  this.emit('open');
4673
4674var WebSocket = global.WebSocket || global.MozWebSocket;
4675
socket.cpp https://github.com/InsideTheBlue/signal-fish.git | C++ | 1,206 lines
265	// Initiate a HCI command
266	hci_command_send(HCI_CMND_CLOSE_SOCKET, ptr, SOCKET_CLOSE_PARAMS_LEN);
267	
533//!  @brief  initiate a connection on a socket 
534//!          Function connects the socket referred to by the socket descriptor 
535//!          sd, to the address specified by addr. The addrlen argument 
541//!          If the socket is of type SOCK_STREAM, this call attempts to make a 
542//!          connection to another socket. The other socket is specified  by 
543//!          address, which is an address in the communications space of the
905	DEBUGPRINT_F("\n\r\tRecv'd data... Socket #");
906	DEBUGPRINT_DEC(tSocketReadEvent.iSocketDescriptor);
907	DEBUGPRINT_F(" Bytes: 0x");
979//!                 function receives a message from a connection-mode or
980//!                 connectionless-mode socket. Note that raw sockets are not
981//!                 supported.
os_net.c https://github.com/svettom/gpac.git | C | 1,537 lines
438	}
439	if (sock->socket) closesocket(sock->socket);
440	sock->socket = (SOCKET) 0L;
508		if (type != (u32) aip->ai_socktype) continue;
509		sock->socket = socket(aip->ai_family, aip->ai_socktype, aip->ai_protocol);
510		if (sock->socket == INVALID_SOCKET) {
783	if (ret == SOCKET_ERROR) {
784		GF_LOG(GF_LOG_ERROR, GF_LOG_NETWORK, ("[socket] cannot bind socket - socket error %x\n", LASTSOCKERROR));
785		ret = GF_IP_CONNECTION_FAILURE;
1277		size = sizeof(struct sockaddr_in6);
1278		if (getsockname(sock->socket, (struct sockaddr *) &the_add, &size) == SOCKET_ERROR) return GF_IP_NETWORK_FAILURE;
1279		*Port = (u32) ntohs(the_add.sin6_port);
1287/*		size = 4;
1288		if (getsockopt(sock->socket, SOL_SOCKET, SO_TYPE, (char *) &fam, &size) == SOCKET_ERROR)
1289			return GF_IP_NETWORK_FAILURE;
mesh_test.cpp https://github.com/vkhoroshko/voltdb.git | C++ | 734 lines
40public:
41    QueueEntry(tcp::socket *nsocket, int64_t nrequestId) : socket(nsocket), requestId(nrequestId) {}
42    tcp::socket *socket;
80        clientAcceptor(io_service, tcp::endpoint(tcp::v4(), 21412)) {
81        tcp::socket *socket = new tcp::socket(io_service);
82        serverAcceptor.async_accept( *socket,
173            serverSockets.push_back(socket);
174            tcp::socket *newsocket = new tcp::socket(acceptor->io_service());
175            acceptor->async_accept(*newsocket, boost::bind(&Server::handleServerAccept, this, boost::asio::placeholders::error, acceptor, newsocket));
313                size_t serverIndex = rand() % serverSockets.size();
314                tcp::socket *serverSocket = serverSockets[serverIndex];
315
437            clientSockets.push_back(socket);
438            tcp::socket *newsocket = new tcp::socket(acceptor->io_service());
439            acceptor->async_accept(*newsocket, boost::bind(&Server::handleClientAccept, this, boost::asio::placeholders::error, acceptor, newsocket));
sauce_connect.log https://github.com/dselmanovic/BearerJSDemo.git | Unknown | 6,702 lines
6902013-12-27 17:54:25,545 - sauce_connect:0 - INFO - GET http://localhost:9876/socket.io/1/?t=1388163263646 -> 200 (6ms, 74 bytes)
6912013-12-27 17:54:25,653 - sauce_connect:0 - INFO - Request started: GET http://localhost:9876/socket.io/static/flashsocket/WebSocketMain.swf
6922013-12-27 17:54:25,661 - sauce_connect:0 - INFO - GET http://localhost:9876/socket.io/static/flashsocket/WebSocketMain.swf -> 200 (8ms, 175830 bytes)
6922013-12-27 17:54:25,661 - sauce_connect:0 - INFO - GET http://localhost:9876/socket.io/static/flashsocket/WebSocketMain.swf -> 200 (8ms, 175830 bytes)
6932013-12-27 17:54:25,740 - sauce_connect:0 - INFO - Request started: GET http://localhost:9876/socket.io/static/flashsocket/WebSocketMain.swf
6942013-12-27 17:54:25,750 - sauce_connect:0 - INFO - GET http://localhost:9876/socket.io/static/flashsocket/WebSocketMain.swf -> 200 (9ms, 175830 bytes)
7312013-12-27 17:54:33,944 - sauce_connect:0 - INFO - Request started: GET http://localhost:9876/socket.io/1/websocket/dyULXIuZgfQwMC6U-Z2j
7322013-12-27 17:54:33,951 - sauce_connect:0 - INFO - Could not proxy http://localhost:9876/socket.io/1/websocket/dyULXIuZgfQwMC6U-Z2j, exception: java.net.SocketException: Unexpected end of file from server
7332013-12-27 17:54:33,960 - sauce_connect:0 - INFO - REPORTING an error to Sauce Labs with info: Could not proxy http://localhost:9876/socket.io/1/websocket/dyULXIuZgfQwMC6U-Z2j, exception: java.net.SocketException: Unexpected end of file from server
26492013-12-27 18:49:56,963 - sauce_connect:0 - INFO - Request started: GET http://localhost:9876/socket.io/static/flashsocket/WebSocketMain.swf
26502013-12-27 18:49:56,973 - sauce_connect:0 - INFO - GET http://localhost:9876/socket.io/static/flashsocket/WebSocketMain.swf -> 200 (9ms, 175830 bytes)
26512013-12-27 18:49:57,213 - sauce_connect:0 - INFO - Request started: GET http://fpdownload2.macromedia.com/get/flashplayer/update/current/install/version.xml11.9.900.117~installVector=8&lang=en&cpuWordLength=64&playerType=ax&os=win&osVer=11
30242013-12-27 20:08:39,236 - sauce_connect:0 - INFO - Could not proxy http://localhost:9876/socket.io/1/websocket/DXsYulOEMQ8flMH4dIgS, exception: java.net.SocketException: Unexpected end of file from server
30252013-12-27 20:08:39,246 - sauce_connect:0 - INFO - REPORTING an error to Sauce Labs with info: Could not proxy http://localhost:9876/socket.io/1/websocket/DXsYulOEMQ8flMH4dIgS, exception: java.net.SocketException: Unexpected end of file from server
3026    at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:782)
socket.h https://github.com/vk2tds/Spark_Ethernet.git | C++ Header | 677 lines
89//----------- Socket Options -----------
90#define  SOL_SOCKET             0xffff		//  socket level
91#define  SOCKOPT_RECV_NONBLOCK         	0	// recv non block mode, set SOCK_ON or SOCK_OFF (default block mode)
293//!          addr is addrlen bytes long. Traditionally, this is called when a 
294//!          socket is created with socket, it exists in a name space (address 
295//!          family) but has no name assigned.
361//!  @brief  initiate a connection on a socket 
362//!          Function connects the socket referred to by the socket descriptor 
363//!          sd, to the address specified by addr. The addrlen argument 
369//!          If the socket is of type SOCK_STREAM, this call attempts to make a 
370//!          connection to another socket. The other socket is specified  by 
371//!          address, which is an address in the communications space of the
562//!                 function receives a message from a connection-mode or
563//!                 connectionless-mode socket. Note that raw sockets are not
564//!                 supported.
socket.c https://github.com/vk2tds/Spark_Ethernet.git | C | 1,213 lines
133
134		if(SOCKET_STATUS_ACTIVE != get_socket_active_status(sd)) {
135			return -1;
369//!          addr is addrlen bytes long. Traditionally, this is called when a 
370//!          socket is created with socket, it exists in a name space (address 
371//!          family) but has no name assigned.
522//!  @brief  initiate a connection on a socket 
523//!          Function connects the socket referred to by the socket descriptor 
524//!          sd, to the address specified by addr. The addrlen argument 
530//!          If the socket is of type SOCK_STREAM, this call attempts to make a 
531//!          connection to another socket. The other socket is specified  by 
532//!          address, which is an address in the communications space of the
958//!                 function receives a message from a connection-mode or
959//!                 connectionless-mode socket. Note that raw sockets are not
960//!                 supported.
wowhead.css https://github.com/cocely/wowhead.git | CSS | 3,626 lines
701
702.iconsmall-socket-meta-empty ins,.iconsmall-socket-yellow-empty ins,.iconsmall-socket-red-empty ins,.iconsmall-socket-blue-empty ins,.iconsmall-socket-prismatic-empty ins {
703background-image:url(../images/Icon/small/socket/background.jpg);
713
714.iconmedium-socket-meta-empty ins,.iconmedium-socket-yellow-empty ins,.iconmedium-socket-red-empty ins,.iconmedium-socket-blue-empty ins,.iconmedium-socket-prismatic-empty ins {
715background-image:url(../images/Icon/medium/socket/background.jpg);
845
846.iconsmall-socket-meta a,.iconsmall-socket-red a,.iconsmall-socket-yellow a,.iconsmall-socket-blue a,.iconsmall-socket-prismatic a {
847background-image:url(../images/Icon/small/hilite/socket1.png);
849
850.iconsmall-socket-meta-empty a,.iconsmall-socket-red-empty a,.iconsmall-socket-yellow-empty a,.iconsmall-socket-blue-empty a,.iconsmall-socket-prismatic-empty a {
851background-image:url(../images/Icon/small/hilite/socket0.png);
1806
1807.menu a.socket-meta,.menu a.socket-red,.menu a.socket-yellow,.menu a.socket-blue,.menu a.socket-prismatic,.menu a.socket-hydraulic,.menu a.socket-cogwheel {
1808background-position:5px center;
socket.io.js https://github.com/FreePBX/ucp.git | JavaScript | 6,194 lines
1492
1493Socket.Socket = Socket;
1494Socket.Transport = _dereq_('./transport');
1555  var transport;
1556  if (this.rememberUpgrade && Socket.priorWebsocketSuccess && this.transports.indexOf('websocket') != -1) {
1557    transport = 'websocket';
1647        self.emit('upgrading', transport);
1648        Socket.priorWebsocketSuccess = 'websocket' == transport.name;
1649
1745  this.readyState = 'open';
1746  Socket.priorWebsocketSuccess = 'websocket' == this.transport.name;
1747  this.emit('open');
4492
4493var WebSocket = global.WebSocket || global.MozWebSocket;
4494
socket.io.js https://github.com/tantion/chat.git | JavaScript | 6,156 lines
1639
1640Socket.Socket = Socket;
1641Socket.Transport = require('./transport');
1700  var transport;
1701  if (this.rememberUpgrade && Socket.priorWebsocketSuccess && this.transports.indexOf('websocket') != -1) {
1702    transport = 'websocket';
1775        self.emit('upgrading', transport);
1776        Socket.priorWebsocketSuccess = 'websocket' == transport.name;
1777
1873  this.readyState = 'open';
1874  Socket.priorWebsocketSuccess = 'websocket' == this.transport.name;
1875  this.emit('open');
4476
4477var WebSocket = global.WebSocket || global.MozWebSocket;
4478
Nio2Endpoint.java https://github.com/enson16855/tomcat.git | Java | 1,175 lines
585
586    protected boolean processSocket0(SocketWrapper<Nio2Channel> socketWrapper, SocketStatus status, boolean dispatch) {
587        try {
612
613    public void closeSocket(SocketWrapper<Nio2Channel> socket, SocketStatus status) {
614        if (socket == null) {
639            }
640            Nio2SocketWrapper nio2Socket = (Nio2SocketWrapper) socket;
641            try {
927        } catch (IOException e1) {
928            closeSocket(socket, SocketStatus.ERROR);
929            return false;
1030
1031        public SocketProcessor(SocketWrapper<Nio2Channel> socket, SocketStatus status) {
1032            reset(socket,status);
AprEndpoint.java https://github.com/enson16855/tomcat.git | Java | 2,411 lines
749            if (socketProperties.getSoLingerOn() && socketProperties.getSoLingerTime() >= 0)
750                Socket.optSet(socket, Socket.APR_SO_LINGER, socketProperties.getSoLingerTime());
751            if (socketProperties.getTcpNoDelay())
751            if (socketProperties.getTcpNoDelay())
752                Socket.optSet(socket, Socket.APR_TCP_NODELAY, (socketProperties.getTcpNoDelay() ? 1 : 0));
753            Socket.timeoutSet(socket, socketProperties.getSoTimeout() * 1000);
865    @Override
866    public void processSocket(SocketWrapper<Long> socket, SocketStatus status,
867            boolean dispatch) {
2300                if (!deferAccept) {
2301                    if (setSocketOptions(socket.getSocket().longValue())) {
2302                        getPoller().add(socket.getSocket().longValue(),
2383                // Close socket and pool
2384                closeSocket(socket.getSocket().longValue());
2385                socket.reset(null, 1);
Socket.java https://github.com/enson16855/tomcat.git | Java | 585 lines
122     *      controls which calls are still valid on the socket.
123     * @param thesocket The socket to close
124     * @param how How to shutdown the socket.  One of:
531     * Create a child pool from associated socket pool.
532     * @param thesocket The socket to use
533     */
538     * Private method for getting the socket struct members
539     * @param socket The socket to use
540     * @param what Struct member to obtain
542     * SOCKET_GET_POOL  - The socket pool
543     * SOCKET_GET_IMPL  - The socket implementation object
544     * SOCKET_GET_APRS  - APR socket
544     * SOCKET_GET_APRS  - APR socket
545     * SOCKET_GET_TYPE  - Socket type
546     * </PRE>
unit_socket.c https://github.com/cloud-hot/picotcp.git | C | 498 lines
326    fail_if(getsocket_buffer != PICO_DEFAULT_SOCKETQ,
327            "socket> socket_setoption: default PICO_SOCKET_OPT_SNDBUF != DEFAULT got: %d exp: %d\n", getsocket_buffer, PICO_DEFAULT_SOCKETQ);
328
340    fail_if(ret < 0, "socket> socket_getoption: supported PICO_SOCKET_OPT_SNDBUF failed\n");
341    fail_if(getsocket_buffer != socket_buffer, "UDP socket> socket_setoption: PICO_SOCKET_OPT_SNDBUF is != than expected\n");
342
353    fail_if(ret < 0, "socket> socket_getoption: supported PICO_SOCKET_OPT_RCVBUF failed\n");
354    fail_if(getsocket_buffer != socket_buffer, "UDP socket> socket_setoption: PICO_SOCKET_OPT_RCVBUF is != than expected\n");
355
360    fail_if(ret < 0, "socket> socket_getoption: supported PICO_SOCKET_OPT_RCVBUF failed\n");
361    fail_if(getsocket_buffer != socket_buffer, "UDP socket> socket_setoption: PICO_SOCKET_OPT_RCVBUF is != than expected\n");
362
380    fail_if(ret < 0, "socket> socket_getoption: supported PICO_SOCKET_OPT_SNDBUF failed\n");
381    fail_if(getsocket_buffer != socket_buffer, "UDP socket> socket_setoption: PICO_SOCKET_OPT_SNDBUF is != than expected\n");
382
http.js https://github.com/Dev-Dipesh/linguist.git | JavaScript | 1,839 lines
268  // TODO Remove one of these eventually.
269  this.socket = socket;
270  this.connection = socket;
1028  self.sockets = {};
1029  self.maxSockets = self.options.maxSockets || Agent.defaultMaxSockets;
1030  self.on('free', function(socket, host, port, localAddress) {
1065  }
1066  if (this.sockets[name].length < this.maxSockets) {
1067    // If we are under maxSockets create a new one.
1745    } else {
1746      res.assignSocket(socket);
1747    }
1758
1759      res.detachSocket(socket);
1760
GCDAsyncUdpSocket.h https://github.com/coderlirui/CocoaAsyncSocket.git | C++ Header | 997 lines
122 * The socket queue is optional.
123 * If you pass NULL, GCDAsyncSocket will automatically create its own socket queue.
124 * If you choose to provide a socket queue, the socket queue must not be a concurrent queue,
823 * Here's how you would accomplish something like that:
824 * - (dispatch_queue_t)newSocketQueueForConnectionFromAddress:(NSData *)address onSocket:(GCDAsyncSocket *)sock
825 * {
833 * }
834 * - (void)socket:(GCDAsyncSocket *)sock didAcceptNewSocket:(GCDAsyncSocket *)newSocket
835 * {
969**/
970- (void)udpSocket:(GCDAsyncUdpSocket *)sock didNotConnect:(NSError *)error;
971
974**/
975- (void)udpSocket:(GCDAsyncUdpSocket *)sock didSendDataWithTag:(long)tag;
976
usocket.lisp https://bitbucket.org/hwo2014/hwo2014-team-876.git | Lisp | 577 lines
1;;;; $Id: usocket.lisp 719 2013-06-17 16:52:12Z ctian $
2;;;; $URL: svn://common-lisp.net/project/usocket/svn/usocket/tags/0.6.1/usocket.lisp $
3
131    (error 'invalid-socket-error))
132  (make-stream-socket :socket socket))
133
233non-nil, bind the associated socket stream to it."
234  `(with-connected-socket (,socket-var (socket-connect ,@socket-connect-args))
235     ,(if (null stream-var)
252`socket-listen-args' to `socket-var'."
253  `(with-server-socket (,socket-var (socket-listen ,@socket-listen-args))
254     ,@body))
315    (let ((wl (make-wait-list (if (listp socket-or-sockets)
316                                  socket-or-sockets (list socket-or-sockets)))))
317      (multiple-value-bind
mcl.lisp https://bitbucket.org/hwo2014/hwo2014-team-876.git | Lisp | 268 lines
136
137(defmethod socket-open-stream ((socket active-socket))
138  (ccl::open-tcp-stream (or (remote-host socket)(ccl::local-interface-ip-address)) (remote-port socket)
161
162(defmethod socket-accept ((socket passive-socket) &key element-type &aux (lock (socket-lock socket)))
163  (flet ((connection-established-p (stream)
174
175(defmethod socket-close ((socket passive-socket))
176  (loop
253
254(defmethod socket-send ((usocket datagram-usocket) buffer size &key host port (offset 0))
255  (with-mapped-conditions (usocket)
260
261(defmethod socket-receive ((usocket datagram-usocket) buffer length &key)
262  (with-mapped-conditions (usocket)
abcl.lisp https://bitbucket.org/hwo2014/hwo2014-team-876.git | Lisp | 432 lines
108(defvar $@socket/DatagramChannel/0 (jmethod $*DatagramChannel "socket"))
109(defvar $@socket/ServerSocketChannel/0 (jmethod $*ServerSocketChannel "socket"))
110(defvar $@socket/SocketChannel/0 (jmethod $*SocketChannel "socket"))
210	 (setq stream (ext:get-socket-stream socket :element-type element-type)
211	       usocket (make-stream-socket :stream stream :socket socket))
212	 (when nodelay-supplied-p
277    (close (socket-stream usocket))
278    (jcall $@close/Socket/0 (socket usocket))))
279
297(defmethod get-local-address ((usocket stream-server-usocket))
298  (get-address (jcall $@getInetAddress/ServerSocket/0 (socket usocket))))
299
386		      ((stream-server-usocket-p usocket) $@getChannel/ServerSocket/0)
387		      ((datagram-usocket-p usocket) $@getChannel/DatagramSocket/0))))
388    (jcall method (socket usocket))))
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21