PageRenderTime 84ms queryFilters 25ms Sphinxql 344ms GetByIds 2090ms meta 0ms repositoryFilters 6ms languageFilters 5ms sourceFilters 1ms

1,422,939 results for 'socket repo:Adinor/projekt' (84 ms)

Source

Language

Repository

os-socket.h https://github.com/spike008t/libcec.git | C++ Header | 342 lines
55  //@{
56  inline void SocketClose(socket_t socket)
57  {
176
177  inline int SocketIoctl(socket_t socket, int *iError, int request, void* data)
178  {
198
199  inline void TcpSocketShutdown(tcp_socket_t socket)
200  {
294
295  inline int TcpGetSocketError(tcp_socket_t socket)
296  {
309
310  inline bool TcpConnectSocket(tcp_socket_t socket, struct addrinfo* addr, int *iError, uint64_t iTimeout = 0)
311  {
socket.js https://github.com/ImyarekRu/Paradox.git | JavaScript | 345 lines
1/**
2 * Socket implementation that uses flash SocketPool class as a backend.
3 *
45    flashApi: api,
46    // map of socket ID to sockets
47    sockets: {},
115  /**
116   * Destroys a socket pool. The socket pool still needs to be cleaned
117   * up via net.cleanup().
247     // store and return socket
248     sp.sockets[id] = socket;
249     return socket;
285    var sp = net.socketPools[options.flashId];
286    socket = sp.createSocket(options);
287  }
socket.js https://github.com/kirillKey/questSearchTrain.git | JavaScript | 684 lines
36function Socket(uri, opts){
37  if (!(this instanceof Socket)) return new Socket(uri, opts);
38
110
111Socket.Socket = Socket;
112Socket.Transport = require('./transport');
173  var transport;
174  if (this.rememberUpgrade && Socket.priorWebsocketSuccess && this.transports.indexOf('websocket') != -1) {
175    transport = 'websocket';
266        if (!transport) return;
267        Socket.priorWebsocketSuccess = 'websocket' == transport.name;
268
362  this.readyState = 'open';
363  Socket.priorWebsocketSuccess = 'websocket' == this.transport.name;
364  this.emit('open');
socket.js https://github.com/paramarco/visible.git | JavaScript | 628 lines
36function Socket(uri, opts){
37  if (!(this instanceof Socket)) return new Socket(uri, opts);
38
108
109Socket.Socket = Socket;
110Socket.Transport = require('./transport');
169  var transport;
170  if (this.rememberUpgrade && Socket.priorWebsocketSuccess && this.transports.indexOf('websocket') != -1) {
171    transport = 'websocket';
244        self.emit('upgrading', transport);
245        Socket.priorWebsocketSuccess = 'websocket' == transport.name;
246
342  this.readyState = 'open';
343  Socket.priorWebsocketSuccess = 'websocket' == this.transport.name;
344  this.emit('open');
socket.c https://github.com/tklauser/libnl.git | C | 785 lines
1/*
2 * lib/socket.c		Netlink Socket
3 *
13 * @ingroup core_types
14 * @defgroup socket Socket
15 *
18 * Related sections in the development guide:
19 * - @core_doc{core_sockets, Netlink Sockets}
20 *
662/**
663 * Set socket buffer size of netlink socket.
664 * @arg sk		Netlink socket.
667 *
668 * Sets the socket buffer size of a netlink socket to the specified
669 * values \c rxbuf and \c txbuf. Providing a value of \c 0 assumes a
Socket.h https://github.com/smuehlmann/xbmc-pvr-addons.git | C++ Header | 299 lines
52  #include <sys/types.h>     /* for socket,connect */
53  #include <sys/socket.h>    /* for socket,connect */
54  #include <sys/un.h>        /* for Unix socket */
121     */
122    Socket(const enum SocketFamily family, const enum SocketDomain domain, const enum SocketType type, const enum SocketProtocol protocol = tcp);
123    Socket(void);
278
279    SOCKET _sd;                         ///< Socket Descriptor
280    SOCKADDR_IN _sockaddr;              ///< Socket Address
282    enum SocketFamily _family;          ///< Socket Address Family
283    enum SocketProtocol _protocol;      ///< Socket Protocol
284    enum SocketType _type;              ///< Socket Type
284    enum SocketType _type;              ///< Socket Type
285    enum SocketDomain _domain;          ///< Socket domain
286
socket.py https://github.com/yhcflyy/kbengine.git | Python | 429 lines
7On other systems, it only supports IP. Functions specific for a
8socket are available as methods of the socket object.
9
11
12socket() -- create a new socket object
13socketpair() -- create a pair of new socket objects [*]
86
87class socket(_socket.socket):
88
189
190    def _real_close(self, _ss=_socket.socket):
191        # This function should not reference any globals. See issue #808164.
223    def socketpair(family=None, type=SOCK_STREAM, proto=0):
224        """socketpair([family[, type[, proto]]]) -> (socket object, socket object)
225
uclibc-0035-socket.h-pull-socket_type.h-from-eglibc.patch https://github.com/fanicy/buildroot.git | Patch | 1,375 lines
37-HEADERS_RM-$(UCLIBC_HAS_SOCKET)              += sys/socket.h bits/socket.h sys/socketvar.h
38+HEADERS_RM-$(UCLIBC_HAS_SOCKET)              += sys/socket.h bits/socket.h sys/socketvar.h bits/socket_type.h
39 HEADERS_RM-$(UCLIBC_HAS_SYSLOG)              += syslog.h sys/syslog.h bits/syslog*.h
114+
115+  /* Flags to be ORed into the type parameter of socket and socketpair.  */
116+
929+};
930diff --git a/libc/sysdeps/linux/sparc/bits/socket.h b/libc/sysdeps/linux/sparc/bits/socket.h
931deleted file mode 100644
958-#if !defined _SYS_SOCKET_H && !defined _NETINET_IN_H
959-# error "Never include <bits/socket.h> directly; use <sys/socket.h> instead."
960-#endif
1362+
1363+  /* Flags to be ORed into the type parameter of socket and socketpair.  */
1364+
socket.h https://github.com/bossjones/pwntools.git | C++ Header | 686 lines
28 *
29 *	@(#)socket.h	8.4 (Berkeley) 2/21/94
30 * $FreeBSD$
89 */
90#define	SOCK_STREAM	1		/* stream socket */
91#define	SOCK_DGRAM	2		/* datagram socket */
146 * Space reserved for new socket options added by third-party vendors.
147 * This range applies to all socket option levels.  New socket options
148 * in FreeBSD should always use an option value less than SO_VENDOR.
171 */
172#define	SOL_SOCKET	0xffff		/* options for socket level */
173
679
680void so_listeners_apply_all(struct socket *so, void (*func)(struct socket *, void *), void *arg);
681
manual.chrome.socket.js https://github.com/engmsaleh/mobile-chrome-apps.git | JavaScript | 316 lines
10    chrome.socket.create(type, {}, function(socketInfo) {
11      chrome.socket.connect(socketInfo.socketId, addr, port, function(connectResult) {
12        var connected = (connectResult === 0);
13        if (connected) {
14          chrome.socket.write(socketInfo.socketId, data, function(writeResult) {
15            logger('connectAndWrite: success');
15            logger('connectAndWrite: success');
16            chrome.socket.disconnect(socketInfo.socketId);
17            chrome.socket.destroy(socketInfo.socketId);
140                chrome.socket.write(socketInfo.socketId, data, function(writeResult) {
141                  chrome.socket.disconnect(socketInfo.socketId);
142                  chrome.socket.destroy(socketInfo.socketId);
230                chrome.socket.write(socketInfo2.socketId, data, function(result) {
231                  chrome.socket.destroy(socketInfo2.socketId);
232                });
socket.cpp https://github.com/jay/wxWidgets.git | C++ | 2,171 lines
305
306wxSocketImpl::wxSocketImpl(wxSocketBase& wxsocket)
307    : m_wxsocket(&wxsocket)
525
526wxSocketImpl *wxSocketImpl::Accept(wxSocketBase& wxsocket)
527{
544
545    wxSocketImpl * const sock = manager->CreateSocket(wxsocket);
546    if ( !sock )
862
863wxSocketBase::wxSocketBase(wxSocketFlags flags, wxSocketType type)
864{
1919
1920wxSOCKET_T wxSocketBase::GetSocket() const
1921{
socket.monkeydoc https://github.com/Sonickidnextgen/monkey_ambiguityfix_80a.git | Unknown | 342 lines
28
29# Method OnAcceptComplete:Void( socket:Socket,source:Socket )
30
75
76# Method OnReceiveFromComplete:Void( data:DataBuffer,offset:Int,count:Int,address:SocketAddress,source:Socket )
77
180
181The socket must be a server socket. If the socket has not been bound, it will first be bound to a system generated host address and port number.
182
274
275The socket must be a connected stream or connected datagram socket.
276
285
286The socket must be a connected stream or connected datagram socket.
287
socket.hpp https://github.com/murrekatt/zmqpp.git | C++ Header | 539 lines
33/*!
34 * The socket class represents the zmq sockets.
35 *
65	 */
66	socket(context_t const& context, socket_type const type);
67
490	 */
491	socket(socket&& source) NOEXCEPT;
492
503	 */
504	socket& operator=(socket&& source) NOEXCEPT;
505
530	socket(socket const&) NOEXCEPT ZMQPP_EXPLICITLY_DELETED;
531	socket& operator=(socket const&) NOEXCEPT ZMQPP_EXPLICITLY_DELETED;
532
tcp-socket-base.cc https://github.com/scarletttu/ns-3-codel-dev.git | C++ | 2,294 lines
127
128TcpSocketBase::TcpSocketBase (const TcpSocketBase& sock)
129  : TcpSocket (sock),
227/** Inherit from Socket class: Returns error code */
228enum Socket::SocketErrno
229TcpSocketBase::GetErrno (void) const
1587      std::vector<Ptr<TcpSocketBase> >::iterator it
1588        = std::find (m_tcp->m_sockets.begin (), m_tcp->m_sockets.end (), this);
1589      if (it != m_tcp->m_sockets.end ())
1600      std::vector<Ptr<TcpSocketBase> >::iterator it
1601        = std::find (m_tcp->m_sockets.begin (), m_tcp->m_sockets.end (), this);
1602      if (it != m_tcp->m_sockets.end ())
1624  header.SetDestination (m_endPoint->GetPeerAddress ());
1625  Socket::SocketErrno errno_;
1626  Ptr<Ipv4Route> route;
socket.c https://github.com/dopry/glusterfs.git | C | 1,626 lines
25
26#include "socket.h"
27#include "name.h"
43
44static int socket_init (transport_t *this);
45
53static int
54__socket_rwv (transport_t *this, struct iovec *vector, int count,
55              struct iovec **pending_vector, int *pending_count,
57{
58        socket_private_t *priv = NULL;
59        int               sock = -1;
137static int
138__socket_readv (transport_t *this, struct iovec *vector, int count,
139                struct iovec **pending_vector, int *pending_count)
Socket.js https://github.com/yurydelendik/shumway.git | JavaScript | 173 lines
18 /*global throwError, Errors */
19var SocketDefinition = (function () {
20  return {
21    // (host:String = null, port:int = 0)
22    __class__: "flash.net.Socket",
23    initialize: function () {
31          internalGetSecurityErrorMessage: function internalGetSecurityErrorMessage(host, port) { // (host:String, port:int) -> String
32            somewhatImplemented("Socket.internalGetSecurityErrorMessage");
33            return 'SecurityErrorEvent';
35          internalConnect: function internalConnect(host, port) { // (host:String, port:int) -> void
36            somewhatImplemented("Socket.internalConnect");
37            throwError('SecurityError', Errors.SocketConnectError, host, port);
39          didFailureOccur: function didFailureOccur() { // (void) -> Boolean
40            somewhatImplemented("Socket.didFailureOccur");
41            return true;
socket.c https://github.com/Papafox/openvpn.git | C | 3,369 lines
614      ls->socket_buffer_sizes.rcvbuf = rcvbuf;
615      socket_set_buffers (ls->sd, &ls->socket_buffer_sizes);
616    }
2975int
2976socket_send_queue (struct link_socket *sock, struct buffer *buf, const struct link_socket_actual *to)
2977{
3286      const int errnum = openvpn_errno ();
3287      msg (M_FATAL, "%s: Socket bind[%d] failed on unix domain socket %s: %s",
3288	   prefix,
3301socket_descriptor_t
3302socket_accept_unix (socket_descriptor_t sd,
3303		    struct sockaddr_un *remote)
3313int
3314socket_connect_unix (socket_descriptor_t sd,
3315		     struct sockaddr_un *remote)
Socket.h https://github.com/tujianqun/metaq.git | C++ Header | 225 lines
103		 */
104		static SOCKET_FD_T AcceptSocket(SOCKET_FD_T fd);
105
131		 */
132		static SOCKET_RET_TYPE_E IsSocketReadable(SOCKET_FD_T fd, int timeout);
133
136		 */
137		static SOCKET_RET_TYPE_E IsSocketReadable(SOCKET_FD_T fd);
138
177		 */
178		static SOCKET_RET_TYPE_E ReadSocket(SOCKET_FD_T fd, char* buf, int length);
179
196		static SOCKET_RET_TYPE_E WriteUDPSocket(SOCKET_FD_T fd, const char* addr, const char* buf, int length);
197		static SOCKET_RET_TYPE_E WriteUDPSocket(SOCKET_FD_T fd, int port, const char* buf, int length);
198
req.socket.md https://github.com/balderdashy/sails-docs.git | Unknown | 47 lines
2
3If the current Request (`req`) originated from a connected Socket.io client, `req.socket` refers to the raw Socket.io socket instance.
4
15> 
16> `req.socket` may be deprecated in a future release of Sails.  You should use the [`sails.sockets.*`](./#!documentation/reference/Sockets) methods instead.
17
17
18If the current request (`req`) did NOT originate from a Socket.io client, `req.socket` does not have the same meaning.  In the most common scenario, HTTP requests, `req.socket` actually _does exist_, but it refers instead to the underlying TCP socket. Before using `req.socket`, you should check the [`req.isSocket`]() flag to ensure the request arrived via a connected Socket.io client.
19
19
20`req.socket.id` is a unique identifier representing the current socket.  This is generated by the Socket.io server when a client first connects, and is a valid unique identifier until the socket is disconnected (e.g. if the client is a web browser, until the user closes her browser tab.)
21
21
22Sails also provides direct, low-level access to all of the other methods and properties from a Socket.io `Socket`, including `req.socket`, including `req.socket.join`, `req.socket.leave`, `req.socket.broadcast`, and more.  See the relevant docs in the [Socket.io wiki](https://github.com/LearnBoost/socket.io/wiki/Rooms) for more information.
23
Closing-a-Socket.html https://github.com/apc-io/apc-rock-toolchain.git | HTML | 105 lines
7<link title="Top" rel="start" href="index.html#Top">
8<link rel="up" href="Open_002fClose-Sockets.html#Open_002fClose-Sockets" title="Open/Close Sockets">
9<link rel="prev" href="Creating-a-Socket.html#Creating-a-Socket" title="Creating a Socket">
9<link rel="prev" href="Creating-a-Socket.html#Creating-a-Socket" title="Creating a Socket">
10<link rel="next" href="Socket-Pairs.html#Socket-Pairs" title="Socket Pairs">
11<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
51<p>
52Next:&nbsp;<a rel="next" accesskey="n" href="Socket-Pairs.html#Socket-Pairs">Socket Pairs</a>,
53Previous:&nbsp;<a rel="previous" accesskey="p" href="Creating-a-Socket.html#Creating-a-Socket">Creating a Socket</a>,
53Previous:&nbsp;<a rel="previous" accesskey="p" href="Creating-a-Socket.html#Creating-a-Socket">Creating a Socket</a>,
54Up:&nbsp;<a rel="up" accesskey="u" href="Open_002fClose-Sockets.html#Open_002fClose-Sockets">Open/Close Sockets</a>
55<hr>
59
60<p><a name="index-socket_002c-closing-1777"></a><a name="index-closing-a-socket-1778"></a><a name="index-shutting-down-a-socket-1779"></a><a name="index-socket-shutdown-1780"></a>
61When you have finished using a socket, you can simply close its
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21