PageRenderTime 9ms queryFilters 2ms Sphinxql 376ms GetByIds 46ms meta 0ms repositoryFilters 7ms languageFilters 1ms sourceFilters 2ms

1,422,939 results for 'socket repo:m.schmidt/JAirPort' (9 ms)

Source

Language

Repository

os-socket.h https://github.com/xhaggi/xbmc-pvr-addons.git | C++ Header | 318 lines
54  //@{
55  inline void SocketClose(socket_t socket)
56  {
170  //@{
171  inline void TcpSocketClose(tcp_socket_t socket)
172  {
175
176  inline void TcpSocketShutdown(tcp_socket_t socket)
177  {
181
182  inline ssize_t TcpSocketWrite(tcp_socket_t socket, int *iError, void* data, size_t len)
183  {
285
286  inline bool TcpConnectSocket(tcp_socket_t socket, struct addrinfo* addr, int *iError, uint64_t iTimeout = 0)
287  {
socket.c https://github.com/saintkepha/corenova.git | C | 374 lines
66_new(enum _socketTypes type) {
67    socket_t *sock = (socket_t *) calloc(1, sizeof (socket_t));
68    if (sock) {
279static boolean_t
280setAddressSocket(socket_t *socket, const char *to, int port) {
281    if (socket && to) {
309            default:
310                DEBUGP(DWARN, "setAddress", "cannot set address for '%s' socket!", _socketDescr[socket->type]);
311        }
331newSocketPair(void) {
332    socket_pair_t *pair = (socket_pair_t *) calloc(1, sizeof (socket_pair_t));
333    if (pair) {
334        if (socketpair(AF_UNIX, SOCK_STREAM, 0, pair->fds) < 0) {
335            DEBUGP(DERR, "newSocketPair", "failed to create a new socket pair!");
336            free(pair);
socket.c https://github.com/alvm/geany.git | C | 816 lines
220
221	if (g_lstat(socket_info.file_name, &socket_stat) == 0)
222	{	/* If the user id of the process is not the same as the owner of the socket
338	if (socket_info.lock_socket_tag > 0)
339		g_source_remove(socket_info.lock_socket_tag);
340	if (socket_info.read_ioc)
351	{
352		remove_socket_link_full(); /* deletes the socket file and the symlink */
353		g_free(socket_info.file_name);
413	 * file system which doesn't support sockets, we just link the socket there and create the
414	 * real socket in the system's tmp directory assuming it supports sockets */
415	real_path = g_strdup_printf("%s%cgeany_socket.%08x",
423	}
424	/* create a symlink in e.g. ~/.config/geany/geany_socket_hostname__0 to /tmp/geany_socket.499602d2 */
425	else if (symlink(real_path, path) != 0)
send.socket.Rd https://github.com/brotchie/rzmq.git | Unknown | 60 lines
7\description{
8  Queue the message referenced by the msg argument to be sent to the socket referenced by the socket argument. 
9
9
10  A successful invocation of send.socket does not indicate that the message has been transmitted to the network, only that it has been queued on the socket and ZMQ has assumed responsibility for the message.
11}
12\usage{
13send.socket(socket, data, send.more=FALSE, serialize=TRUE)
14send.null.msg(socket, send.more=FALSE)
36\seealso{
37  \code{\link{connect.socket},\link{bind.socket},\link{receive.socket},\link{send.socket},\link{poll.socket}}
38}
55   ans <- do.call(fun,args)
56   send.socket(out.socket,ans)
57}
socket.options.Rd https://github.com/brotchie/rzmq.git | Unknown | 81 lines
26option_name argument to the value pointed to by the option_value
27argument for the ZMQ socket pointed to by the socket argument.
28}
49\arguments{
50  \item{socket}{a zmq socket object}
51  \item{option.value}{the new option value to bet set}
67\seealso{
68  \code{\link{connect.socket},\link{bind.socket},\link{receive.socket},\link{send.socket},\link{poll.socket}}
69}
73context = init.context()
74socket = init.socket(context,"ZMQ_REQ")
75
77set.swap(socket, 100L)
78set.identity(socket, "big.ass.socket")
79}}
receive.socket.Rd https://github.com/brotchie/rzmq.git | Unknown | 67 lines
7\title{
8Receive a message from the socket referenced by the socket argument .
9}
11The zmq_recv() function shall receive a message from the socket
12referenced by the socket argument. If there are no messages available on the specified socket the function shall block until the request can be satisfied.
13}
39\seealso{
40  \code{\link{connect.socket},\link{bind.socket},\link{receive.socket},\link{send.socket},\link{poll.socket}}
41}
44
45remote.exec <- function(out.socket,in.socket,fun,...) {
46    send.socket(out.socket,data=list(fun=fun,args=list(...)))
54in.socket = init.socket(context,"ZMQ_PULL")
55bind.socket(in.socket,"tcp://*:5558")
56
socket.h https://github.com/linkdd/fwallsh.git | C++ Header | 224 lines
136/*!
137 * \fn void socket_set_foreach_fn (struct socket_set_t *sset, struct socket_t *s, void *data)
138 * \brief Called by socket_set_foreach().
143 */
144typedef void (*socket_set_foreach_fn) (struct socket_set_t *, struct socket_t *, void *);
145
200 */
201void socket_set_remove (struct socket_set_t *sset, struct socket_t *s);
202
211 */
212bool socket_set_isset (struct socket_set_t *sset, struct socket_t *s);
213
220 */
221void socket_set_foreach (struct socket_set_t *sset, socket_set_foreach_fn caller, void *data);
222
058-tcp-socket.t https://github.com/npk/lua-nginx-module.git | Unknown | 1,976 lines
3use lib 'lib';
4use Test::Nginx::Socket;
5
99        content_by_lua '
100            local sock = ngx.socket.tcp()
101            local port = ngx.var.port
166        content_by_lua '
167            local sock = ngx.socket.tcp()
168            local port = ngx.var.port
194--- error_log
195attempt to send data on a closed socket:
196
1383--- error_log eval
1384["lua reuse socket upstream", "lua socket reconnect without shutting down"]
1385
tcp-socket.t https://github.com/npk/lua-nginx-module.git | Unknown | 2,040 lines
3use lib 'lib';
4use Test::Nginx::Socket;
5
101        rewrite_by_lua '
102            local sock = ngx.socket.tcp()
103            local port = ngx.var.port
170        rewrite_by_lua '
171            local sock = ngx.socket.tcp()
172            local port = ngx.var.port
200--- error_log
201attempt to send data on a closed socket:
202
1429--- error_log eval
1430["lua reuse socket upstream", "lua socket reconnect without shutting down"]
1431
Socket.php https://github.com/tinkajts/php-websocket.git | PHP | 322 lines
74    /**
75     * The socket name according to stream_socket_get_name
76     *
174        } else {
175            throw new SocketException('Cannot get socket IP address');
176        }
186        if ($this->isConnected() && $this->socket) {
187            $err = @socket_last_error($this->socket);
188            if ($err) {
217        if ($this->socket) {
218            stream_socket_shutdown($this->socket, STREAM_SHUT_RDWR);
219        }
247        if (!$this->isConnected()) {
248            throw new SocketException('Socket is not connected');
249        }
067-req-socket.t https://bitbucket.org/redpitaya/redpitaya.git | Unknown | 755 lines
26        content_by_lua '
27            local sock, err = ngx.req.socket()
28            if sock then
28            if sock then
29                ngx.say("got the request socket")
30            else
30            else
31                ngx.say("failed to get the request socket: ", err)
32            end
47--- response_body
48got the request socket
49received: hello
60        content_by_lua '
61            local sock, err = ngx.req.socket()
62            if sock then
socket.js https://github.com/eiriklv/socket.io.git | JavaScript | 423 lines
6var Emitter = require('events').EventEmitter;
7var parser = require('socket.io-parser');
8var url = require('url');
8var url = require('url');
9var debug = require('debug')('socket.io:socket');
10var hasBin = require('has-binary-data');
15
16module.exports = exports = Socket;
17
56
57function Socket(nsp, client){
58  this.nsp = nsp;
75
76Socket.prototype.__proto__ = Emitter.prototype;
77
Socket.h https://github.com/crmne/marsyas.git | C++ Header | 111 lines
5    This class provides a uniform cross-platform
6    TCP socket client or socket server interface.
7    Methods are provided for reading or writing
48
49  //! Connect a socket client to the specified host and port and returns the resulting socket descriptor.
50  /*!
51    This method is valid for socket clients only.  If it is called for
52    a socket server, -1 is returned.  If the socket client is already
53    connected, that connection is terminated and a new connection is
68
69  //! If this is a socket server, extract the first pending connection request from the queue and create a new connection, returning the descriptor for the accepted socket.
70  /*!
77
78  //! If enable = false, the socket is set to non-blocking mode.  When first created, sockets are by default in blocking mode.
79  static void setBlocking( int socket, bool enable );
socket.js https://github.com/petey/socket.io-client.git | JavaScript | 356 lines
5
6var parser = require('socket.io-parser');
7var Emitter = require('emitter');
10var bind = require('bind');
11var debug = require('debug')('socket.io-client:socket');
12var hasBin = require('has-binary-data');
18
19module.exports = exports = Socket;
20
40/**
41 * `Socket` constructor.
42 *
45
46function Socket(io, nsp){
47  this.io = io;
Socket.php https://github.com/Ygnas/store-webpanel.git | PHP | 184 lines
114        if($this->socketsEnabled) {
115            $data = @socket_read($this->socket, $length, PHP_BINARY_READ);
116
117            if ($data === false) {
118                throw new SocketException(socket_last_error($this->socket));
119            }
123            if ($data === false) {
124                throw new SocketException('Could not read from socket.');
125            }
162        if($this->socketsEnabled) {
163            $sendResult = socket_send($this->socket, $data, strlen($data), 0);
164            if ($sendResult === false) {
164            if ($sendResult === false) {
165                throw new SocketException(socket_last_error($this->socket));
166            }
socket.lua https://github.com/382411196/skynet.git | Lua | 315 lines
1local driver = require "socketdriver"
2local skynet = require "skynet"
6local buffer_pool = {}	-- store all message buffer object
7local socket_pool = setmetatable( -- store all socket object
8	{},
18
19local socket_message = {}
20
33	-- wakeup closing corouting every time suspend,
34	-- because socket.close() will wait last socket buffer operation before clear the buffer.
35	if s.closing then
39
40-- read skynet_socket.h for these macro
41-- SKYNET_SOCKET_TYPE_DATA = 1
115	name = "socket",
116	id = skynet.PTYPE_SOCKET,	-- PTYPE_SOCKET = 6
117	unpack = driver.unpack,
socket.js.html https://github.com/raghunat/suny-live.git | HTML | 1,406 lines
3<head>
4    <title>Code coverage report for socket.io-client/lib/socket.js</title>
5    <meta charset="utf-8">
198<div class="header low">
199    <h1>Code coverage report for <span class="entity">socket.io-client/lib/socket.js</span></h1>
200    <h2>
214    </h2>
215    <div class="path"><a href="../../index.html">All files</a> &#187; <a href="index.html">socket.io-client/lib/</a> &#187; socket.js</div>
216</div>
950var bind = require('bind');
951var debug = require('debug')('socket.io-client:socket');
952var hasBin = require('has-binary-data');
1094/**
1095 * "Opens" the socket.
1096 *
socket.js https://github.com/raghunat/suny-live.git | JavaScript | 362 lines
5
6var parser = require('socket.io-parser');
7var Emitter = require('emitter');
10var bind = require('bind');
11var debug = require('debug')('socket.io-client:socket');
12var hasBin = require('has-binary-data');
18
19module.exports = exports = Socket;
20
40/**
41 * `Socket` constructor.
42 *
45
46function Socket(io, nsp){
47  this.io = io;
socket.js https://github.com/raghunat/suny-live.git | JavaScript | 429 lines
6var Emitter = require('events').EventEmitter;
7var parser = require('socket.io-parser');
8var url = require('url');
8var url = require('url');
9var debug = require('debug')('socket.io:socket');
10var hasBin = require('has-binary-data');
15
16module.exports = exports = Socket;
17
56
57function Socket(nsp, client){
58  this.nsp = nsp;
75
76Socket.prototype.__proto__ = Emitter.prototype;
77
socket.js https://github.com/ojhaujjwal/socket.io-client.git | JavaScript | 362 lines
5
6var parser = require('socket.io-parser');
7var Emitter = require('component-emitter');
10var bind = require('component-bind');
11var debug = require('debug')('socket.io-client:socket');
12var hasBin = require('has-binary-data');
18
19module.exports = exports = Socket;
20
40/**
41 * `Socket` constructor.
42 *
45
46function Socket(io, nsp){
47  this.io = io;
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21