PageRenderTime 41ms queryFilters 35ms Sphinxql 101ms app.CodeModel.GetByIds 751ms findMatchingLines 198ms GetByIds 949ms meta 0ms repositoryFilters 12ms languageFilters 13ms sourceFilters 4ms

624,987 results for 'socket repo:humphrey8146/PCI-Testground' (41 ms)

Source

Language

Repository

socket.h https://github.com/InsideTheBlue/signal-fish.git | C++ Header | 692 lines
97//----------- Socket Options -----------
98#define  SOL_SOCKET             0xffff		//  socket level
99#define  SOCKOPT_RECV_NONBLOCK         	0	// recv non block mode, set SOCK_ON or SOCK_OFF (default block mode)
322//!          addr is addrlen bytes long. Traditionally, this is called when a 
323//!          socket is created with socket, it exists in a name space (address 
324//!          family) but has no name assigned.
390//!  @brief  initiate a connection on a socket 
391//!          Function connects the socket referred to by the socket descriptor 
392//!          sd, to the address specified by addr. The addrlen argument 
398//!          If the socket is of type SOCK_STREAM, this call attempts to make a 
399//!          connection to another socket. The other socket is specified  by 
400//!          address, which is an address in the communications space of the
591//!                 function receives a message from a connection-mode or
592//!                 connectionless-mode socket. Note that raw sockets are not
593//!                 supported.
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.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
socket.h https://github.com/midos0/Energia.git | C++ Header | 686 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)
316//!          addr is addrlen bytes long. Traditionally, this is called when a 
317//!          socket is created with socket, it exists in a name space (address 
318//!          family) but has no name assigned.
384//!  @brief  initiate a connection on a socket 
385//!          Function connects the socket referred to by the socket descriptor 
386//!          sd, to the address specified by addr. The addrlen argument 
392//!          If the socket is of type SOCK_STREAM, this call attempts to make a 
393//!          connection to another socket. The other socket is specified  by 
394//!          address, which is an address in the communications space of the
585//!                 function receives a message from a connection-mode or
586//!                 connectionless-mode socket. Note that raw sockets are not
587//!                 supported.
socket.c https://github.com/midos0/Energia.git | C | 1,173 lines
128		
129		if(SOCKET_STATUS_ACTIVE != get_socket_active_status(sd))
130			return -1;
355//!          addr is addrlen bytes long. Traditionally, this is called when a 
356//!          socket is created with socket, it exists in a name space (address 
357//!          family) but has no name assigned.
510//!  @brief  initiate a connection on a socket 
511//!          Function connects the socket referred to by the socket descriptor 
512//!          sd, to the address specified by addr. The addrlen argument 
518//!          If the socket is of type SOCK_STREAM, this call attempts to make a 
519//!          connection to another socket. The other socket is specified  by 
520//!          address, which is an address in the communications space of the
942//!                 function receives a message from a connection-mode or
943//!                 connectionless-mode socket. Note that raw sockets are not
944//!                 supported.
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.h https://github.com/jay/wxWidgets.git | C++ Header | 1,471 lines
191*/
192class wxSocketServer : public wxSocketBase
193{
294    */
295    wxSocketClient(wxSocketFlags flags = wxSOCKET_NONE);
296
477
478    @see wxSocketBase, wxSocketClient, wxSocketServer
479*/
718
719    @see wxSocketEvent, wxSocketClient, wxSocketServer, @sample{sockets},
720         @ref wxSocketFlags, ::wxSocketEventFlags, ::wxSocketError
1415    */
1416    wxSOCKET_T GetSocket() const;
1417
socket.h https://github.com/shehperd/Espruino.git | C++ Header | 662 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)
292//!          addr is addrlen bytes long. Traditionally, this is called when a 
293//!          socket is created with socket, it exists in a name space (address 
294//!          family) but has no name assigned.
360//!  @brief  initiate a connection on a socket 
361//!          Function connects the socket referred to by the socket descriptor 
362//!          sd, to the address specified by addr. The addrlen argument 
368//!          If the socket is of type SOCK_STREAM, this call attempts to make a 
369//!          connection to another socket. The other socket is specified  by 
370//!          address, which is an address in the communications space of the
561//!                 function receives a message from a connection-mode or
562//!                 connectionless-mode socket. Note that raw sockets are not
563//!                 supported.
socket.c https://github.com/shehperd/Espruino.git | C | 1,184 lines
124		
125		if(SOCKET_STATUS_ACTIVE != get_socket_active_status(sd))
126			return -1;
358//!          addr is addrlen bytes long. Traditionally, this is called when a 
359//!          socket is created with socket, it exists in a name space (address 
360//!          family) but has no name assigned.
517//!  @brief  initiate a connection on a socket 
518//!          Function connects the socket referred to by the socket descriptor 
519//!          sd, to the address specified by addr. The addrlen argument 
525//!          If the socket is of type SOCK_STREAM, this call attempts to make a 
526//!          connection to another socket. The other socket is specified  by 
527//!          address, which is an address in the communications space of the
956//!                 function receives a message from a connection-mode or
957//!                 connectionless-mode socket. Note that raw sockets are not
958//!                 supported.
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.io.js https://github.com/genba/django-socketio.git | JavaScript | 1,941 lines
15		this.path = /\/$/.test(path) ? path : path + '/';
16    WEB_SOCKET_SWF_LOCATION = path + 'lib/vendor/web-socket-js/WebSocketMain.swf';
17	}
31if (typeof window != 'undefined'){
32  // WEB_SOCKET_SWF_LOCATION = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//cdn.socket.io/' + this.io.version + '/WebSocketMain.swf';
33  if (typeof WEB_SOCKET_SWF_LOCATION === 'undefined')
33  if (typeof WEB_SOCKET_SWF_LOCATION === 'undefined')
34    WEB_SOCKET_SWF_LOCATION = '/socket.io/lib/vendor/web-socket-js/WebSocketMain.swf';
35}
431		// we make sure WebSocket is not confounded with a previously loaded flash WebSocket
432		return 'WebSocket' in window && WebSocket.prototype && ( WebSocket.prototype.send && !!WebSocket.prototype.send.toString().match(/native/i)) && typeof WebSocket !== "undefined";
433	};
939
940	Socket.prototype.addListener = Socket.prototype.addEvent = Socket.prototype.addEventListener = Socket.prototype.on;
941
socket.pri https://code.google.com/p/phantomjs/ | Unknown | 78 lines
2
3HEADERS += socket/qabstractsocketengine_p.h \
4           socket/qhttpsocketengine_p.h \
4           socket/qhttpsocketengine_p.h \
5           socket/qsocks5socketengine_p.h \
6           socket/qabstractsocket.h \
6           socket/qabstractsocket.h \
7           socket/qabstractsocket_p.h \
8           socket/qtcpsocket.h \
8           socket/qtcpsocket.h \
9           socket/qudpsocket.h \
10           socket/qtcpserver.h \
41win32:!winrt:SOURCES += socket/qnativesocketengine_win.cpp \
42                socket/qlocalsocket_win.cpp \
43                socket/qlocalserver_win.cpp
socket.sa https://bitbucket.org/starware/sather | Unknown | 653 lines
7--        There are four versions of socket creation - initiating and
8--   connecting sockets for either a local machine socket or for an Internet
9--   one!  Dead sockets may be returned if the name or port arguments are
147     
148     res.id := C_SOCKET::make_connecting_socket_unix(
149                                           unix_socket_directory + name) ;
178      
179     res.id := C_SOCKET::make_initiating_socket_inet(port) ;
180     
210      
211     res.id := C_SOCKET::make_connecting_socket_inet(host,port) ;
212     
233
234     C_SOCKET::close_socket(id) ;
235     is_dead_var := true
socket.sa https://bitbucket.org/starware/sather | Unknown | 366 lines
27--
28-- Classes: SOCKET, SOCKET_EXCEPTION, C_SOCKET
29-- Required file: socket_support.c
87      res.id:=
88	    C_SOCKET::make_connecting_socket_unix(unix_socket_directory+name);
89      if res.id<0 then res.is_dead_var:=true end;
100      if port<min_port_num then res.is_dead_var:=true; return res end;
101      res.id:=C_SOCKET::make_initiating_socket_inet(port);
102      if res.id<0 then res.is_dead_var:=true end;
141	 if use_exceptions_var and is_dead_var then
142	    raise #SOCKET_EXCEPTION("Socket dead upon turning on exceptions")
143	 end
175	    if use_exceptions_var then 
176	       raise #SOCKET_EXCEPTION("Tried to read from a dead socket")
177	    end;
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21