PageRenderTime 12ms queryFilters 1ms Sphinxql 3008ms GetByIds 68ms meta 0ms repositoryFilters 7ms languageFilters 4ms sourceFilters 1ms

439,457 results for 'socket repo:JoshGalvin/GameNodeJS' (12 ms)

Source

Language

Repository

socket.rst https://bitbucket.org/python_mirrors/features-pep-3155 | Unknown | 1,355 lines
1155   PORT = 50007              # Arbitrary non-privileged port
1156   s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
1157   s.bind((HOST, PORT))
1173   PORT = 50007              # The same port as used by the server
1174   s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
1175   s.connect((HOST, PORT))
1263   # create a raw socket and bind it to the public interface
1264   s = socket.socket(socket.AF_INET, socket.SOCK_RAW, socket.IPPROTO_IP)
1265   s.bind((HOST, 0))
1301   # create a raw socket and bind it to the `vcan0` interface
1302   s = socket.socket(socket.AF_CAN, socket.SOCK_RAW, socket.CAN_RAW)
1303   s.bind(('vcan0',))
1330
1331   s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
1332   s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
socket.html https://bitbucket.org/bosp/external-boost.git | HTML | 995 lines
26<div class="titlepage"><div><div><h4 class="title">
27<a name="boost_asio.reference.generic__stream_protocol.socket"></a><a class="link" href="socket.html" title="generic::stream_protocol::socket">generic::stream_protocol::socket</a>
28</h4></div></div></div>
450                  <p>
451                    <a class="link" href="../basic_stream_socket/basic_stream_socket.html" title="basic_stream_socket::basic_stream_socket"><span class="bold"><strong>basic_stream_socket</strong></span></a>
452                  </p>
906<a name="boost_asio.reference.generic__stream_protocol.socket.h4"></a>
907          <span class="phrase"><a name="boost_asio.reference.generic__stream_protocol.socket.protected_data_members"></a></span><a class="link" href="socket.html#boost_asio.reference.generic__stream_protocol.socket.protected_data_members">Protected
908          Data Members</a>
956<p>
957          The <a class="link" href="../basic_stream_socket.html" title="basic_stream_socket"><code class="computeroutput"><span class="identifier">basic_stream_socket</span></code></a> class template
958          provides asynchronous and blocking stream-oriented socket functionality.
961<a name="boost_asio.reference.generic__stream_protocol.socket.h5"></a>
962          <span class="phrase"><a name="boost_asio.reference.generic__stream_protocol.socket.thread_safety"></a></span><a class="link" href="socket.html#boost_asio.reference.generic__stream_protocol.socket.thread_safety">Thread
963          Safety</a>
socket.html https://bitbucket.org/bosp/external-boost.git | HTML | 992 lines
26<div class="titlepage"><div><div><h4 class="title">
27<a name="boost_asio.reference.generic__raw_protocol.socket"></a><a class="link" href="socket.html" title="generic::raw_protocol::socket">generic::raw_protocol::socket</a>
28</h4></div></div></div>
450                  <p>
451                    <a class="link" href="../basic_raw_socket/basic_raw_socket.html" title="basic_raw_socket::basic_raw_socket"><span class="bold"><strong>basic_raw_socket</strong></span></a>
452                  </p>
903<a name="boost_asio.reference.generic__raw_protocol.socket.h4"></a>
904          <span class="phrase"><a name="boost_asio.reference.generic__raw_protocol.socket.protected_data_members"></a></span><a class="link" href="socket.html#boost_asio.reference.generic__raw_protocol.socket.protected_data_members">Protected
905          Data Members</a>
953<p>
954          The <a class="link" href="../basic_raw_socket.html" title="basic_raw_socket"><code class="computeroutput"><span class="identifier">basic_raw_socket</span></code></a> class template
955          provides asynchronous and blocking raw-oriented socket functionality.
958<a name="boost_asio.reference.generic__raw_protocol.socket.h5"></a>
959          <span class="phrase"><a name="boost_asio.reference.generic__raw_protocol.socket.thread_safety"></a></span><a class="link" href="socket.html#boost_asio.reference.generic__raw_protocol.socket.thread_safety">Thread
960          Safety</a>
socket.html https://bitbucket.org/bosp/external-boost.git | HTML | 947 lines
26<div class="titlepage"><div><div><h4 class="title">
27<a name="boost_asio.reference.generic__seq_packet_protocol.socket"></a><a class="link" href="socket.html" title="generic::seq_packet_protocol::socket">generic::seq_packet_protocol::socket</a>
28</h4></div></div></div>
426                  <p>
427                    <a class="link" href="../basic_seq_packet_socket/basic_seq_packet_socket.html" title="basic_seq_packet_socket::basic_seq_packet_socket"><span class="bold"><strong>basic_seq_packet_socket</strong></span></a>
428                  </p>
908<p>
909          The <a class="link" href="../basic_seq_packet_socket.html" title="basic_seq_packet_socket"><code class="computeroutput"><span class="identifier">basic_seq_packet_socket</span></code></a> class
910          template provides asynchronous and blocking sequenced packet socket functionality.
913<a name="boost_asio.reference.generic__seq_packet_protocol.socket.h5"></a>
914          <span class="phrase"><a name="boost_asio.reference.generic__seq_packet_protocol.socket.thread_safety"></a></span><a class="link" href="socket.html#boost_asio.reference.generic__seq_packet_protocol.socket.thread_safety">Thread
915          Safety</a>
924<a name="boost_asio.reference.generic__seq_packet_protocol.socket.h6"></a>
925          <span class="phrase"><a name="boost_asio.reference.generic__seq_packet_protocol.socket.requirements"></a></span><a class="link" href="socket.html#boost_asio.reference.generic__seq_packet_protocol.socket.requirements">Requirements</a>
926        </h6>
socket.html https://bitbucket.org/bosp/external-boost.git | HTML | 992 lines
26<div class="titlepage"><div><div><h4 class="title">
27<a name="boost_asio.reference.generic__datagram_protocol.socket"></a><a class="link" href="socket.html" title="generic::datagram_protocol::socket">generic::datagram_protocol::socket</a>
28</h4></div></div></div>
450                  <p>
451                    <a class="link" href="../basic_datagram_socket/basic_datagram_socket.html" title="basic_datagram_socket::basic_datagram_socket"><span class="bold"><strong>basic_datagram_socket</strong></span></a>
452                  </p>
903<a name="boost_asio.reference.generic__datagram_protocol.socket.h4"></a>
904          <span class="phrase"><a name="boost_asio.reference.generic__datagram_protocol.socket.protected_data_members"></a></span><a class="link" href="socket.html#boost_asio.reference.generic__datagram_protocol.socket.protected_data_members">Protected
905          Data Members</a>
953<p>
954          The <a class="link" href="../basic_datagram_socket.html" title="basic_datagram_socket"><code class="computeroutput"><span class="identifier">basic_datagram_socket</span></code></a> class template
955          provides asynchronous and blocking datagram-oriented socket functionality.
958<a name="boost_asio.reference.generic__datagram_protocol.socket.h5"></a>
959          <span class="phrase"><a name="boost_asio.reference.generic__datagram_protocol.socket.thread_safety"></a></span><a class="link" href="socket.html#boost_asio.reference.generic__datagram_protocol.socket.thread_safety">Thread
960          Safety</a>
socket.h https://bitbucket.org/lalithsuresh/ns-3-gpsr | C++ Header | 693 lines
41 * \ingroup network
42 * \defgroup socket Socket
43 */
45/**
46 * \brief A low-level Socket API based loosely on the BSD Socket API.
47 * \ingroup socket
104   */
105  static Ptr<Socket> CreateSocket (Ptr<Node> node, TypeId tid);
106  /**
114    */
115  virtual enum Socket::SocketType GetSocketType (void) const = 0;
116  /**
589   * For IP_PKTINFO/IP6_PKTINFO. This method is only usable for 
590   * Raw socket and Datagram Socket. Not supported for Stream socket.
591   *
Socket.h https://bitbucket.org/zhexiwang/zzz.git | C Header | 620 lines
53	/// Socket is the common base class for
54	/// StreamSocket, ServerSocket, DatagramSocket and other
55	/// socket classes.
72
73	Socket(const Socket& socket);
74		/// Copy constructor.
78		
79	Socket& operator = (const Socket& socket);
80		/// Assignment operator.
112
113	static int select(SocketList& readList, SocketList& writeList, SocketList& exceptList, const Poco::Timespan& timeout);
114		/// Determines the status of one or more sockets, 
334//
335inline bool Socket::operator == (const Socket& socket) const
336{
socket.scm https://bitbucket.org/wnoble/s48 | Racket | 362 lines
76  (cond
77   ((or (socket-input-port socket) (socket-output-port socket))
78    (cond
137	 (newsock (channel->socket (socket-address-family socket)
138				   (socket-socket-type socket)
139				   channel)))
177(define (shutdown-socket socket how)
178  (shutdown-socket-channel (socket-channel socket) how))
179
298(define (socket-ipv6-join-group! socket address interface)
299  (external-ipv6-socket-join-group (socket-channel socket)
300				   (socket-address-raw address)
306(define (socket-ipv6-leave-group! socket address interface)
307  (external-ipv6-socket-leave-group (socket-channel socket)
308				    (socket-address-raw address)
big-socket.scm https://bitbucket.org/wnoble/s48 | Racket | 82 lines
7; Server interface
8;   (open-socket [socket-number]) -> socket
9;   (close-socket socket)
9;   (close-socket socket)
10;   (socket-accept socket) -> [input-port output-port]
11;   (get-host-name) -> string
11;   (get-host-name) -> string
12;   (socket-port-number socket) -> integer
13
14; Client interface
15;   (socket-client host-name socket-number) -> [input-port output-port]
16
37			      (socket-type stream))))
38    (socket-connect socket
39		    (make-ipv4-socket-address address port))
socket.rst https://bitbucket.org/jaraco/cpython-issue13540 | Unknown | 1,539 lines
1331   PORT = 50007              # Arbitrary non-privileged port
1332   s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
1333   s.bind((HOST, PORT))
1349   PORT = 50007              # The same port as used by the server
1350   s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
1351   s.connect((HOST, PORT))
1439   # create a raw socket and bind it to the public interface
1440   s = socket.socket(socket.AF_INET, socket.SOCK_RAW, socket.IPPROTO_IP)
1441   s.bind((HOST, 0))
1458
1459    socket.socket(socket.AF_CAN, socket.SOCK_DGRAM, socket.CAN_BCM)
1460
1486   # create a raw socket and bind it to the 'vcan0' interface
1487   s = socket.socket(socket.AF_CAN, socket.SOCK_RAW, socket.CAN_RAW)
1488   s.bind(('vcan0',))
socket.py https://bitbucket.org/jaraco/cpython-issue13540 | Python | 682 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 [*]
39
40AF_INET, AF_UNIX -- socket domains (first argument to socket() call)
41SOCK_STREAM, SOCK_DGRAM, SOCK_RAW -- socket types (second argument)
114
115class socket(_socket.socket):
116
453    def socketpair(family=None, type=SOCK_STREAM, proto=0):
454        """socketpair([family[, type[, proto]]]) -> (socket object, socket object)
455
socket.rst https://bitbucket.org/jaraco/cpython-issue11638 | Unknown | 1,369 lines
1169   PORT = 50007              # Arbitrary non-privileged port
1170   s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
1171   s.bind((HOST, PORT))
1187   PORT = 50007              # The same port as used by the server
1188   s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
1189   s.connect((HOST, PORT))
1277   # create a raw socket and bind it to the public interface
1278   s = socket.socket(socket.AF_INET, socket.SOCK_RAW, socket.IPPROTO_IP)
1279   s.bind((HOST, 0))
1315   # create a raw socket and bind it to the `vcan0` interface
1316   s = socket.socket(socket.AF_CAN, socket.SOCK_RAW, socket.CAN_RAW)
1317   s.bind(('vcan0',))
1344
1345   s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
1346   s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
socket.rst https://bitbucket.org/python_mirrors/features-randomhash | Unknown | 1,369 lines
1169   PORT = 50007              # Arbitrary non-privileged port
1170   s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
1171   s.bind((HOST, PORT))
1187   PORT = 50007              # The same port as used by the server
1188   s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
1189   s.connect((HOST, PORT))
1277   # create a raw socket and bind it to the public interface
1278   s = socket.socket(socket.AF_INET, socket.SOCK_RAW, socket.IPPROTO_IP)
1279   s.bind((HOST, 0))
1315   # create a raw socket and bind it to the `vcan0` interface
1316   s = socket.socket(socket.AF_CAN, socket.SOCK_RAW, socket.CAN_RAW)
1317   s.bind(('vcan0',))
1344
1345   s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
1346   s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
Socket.h https://bitbucket.org/Jakaleca/trinitycore | C++ Header | 736 lines
72        Socket *GetSocket() const { return m_socket; }
73        SocketThread(const SocketThread& s) : m_socket(s.GetSocket()) {}
74        SocketThread& operator=(const SocketThread& ) { return *this; }
135    /** "Default" constructor */
136    Socket(ISocketHandler&);
137
675private:
676    ISocketHandler& m_handler; ///< Reference of ISocketHandler in control of this socket
677    SOCKET m_socket; ///< File descriptor
680    time_t m_tCreate; ///< Time in seconds when this socket was created
681    Socket *m_parent; ///< Pointer to ListenSocket class, valid for incoming sockets
682    bool m_b_disable_read; ///< Disable checking for read events
707#ifdef ENABLE_POOL
708    int m_socket_type; ///< Type of socket, from socket() call
709    std::string m_socket_protocol; ///< Protocol, from socket() call
socket.rst https://bitbucket.org/bewest/cpython | Unknown | 1,369 lines
1169   PORT = 50007              # Arbitrary non-privileged port
1170   s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
1171   s.bind((HOST, PORT))
1187   PORT = 50007              # The same port as used by the server
1188   s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
1189   s.connect((HOST, PORT))
1277   # create a raw socket and bind it to the public interface
1278   s = socket.socket(socket.AF_INET, socket.SOCK_RAW, socket.IPPROTO_IP)
1279   s.bind((HOST, 0))
1315   # create a raw socket and bind it to the `vcan0` interface
1316   s = socket.socket(socket.AF_CAN, socket.SOCK_RAW, socket.CAN_RAW)
1317   s.bind(('vcan0',))
1344
1345   s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
1346   s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
socket.rb https://bitbucket.org/Scott_NZ/arma2net | Ruby | 756 lines
338  #   # tcp_server_sockets returns two sockets.
339  #   sockets = Socket.tcp_server_sockets(1296)
340  #   p sockets #=> [#<Socket:fd 3>, #<Socket:fd 4>]
347  #   # IPv6 and IPv4 socket has same port number, 53114, even if it is choosen dynamically.
348  #   sockets = Socket.tcp_server_sockets(0)
349  #   sockets.each {|s| p s.local_address }
353  #   # The block is called with the sockets.
354  #   Socket.tcp_server_sockets(0) {|sockets|
355  #     p sockets #=> [#<Socket:fd 3>, #<Socket:fd 4>]
480  #   # UDP/IP echo server
481  #   Socket.udp_server_sockets(0) {|sockets|
482  #     p sockets.first.local_address.ip_port     #=> 32963
693  #
694  #   socket = Socket.unix_server_socket("/tmp/s")
695  #   p socket                  #=> #<Socket:fd 3>
socket.cc https://bitbucket.org/modelnine/protoproxy | C++ | 795 lines
131	// Throw exception.
132	error("Default priority write callback called with socket event for socket"
133			" at %p", static_cast<void*>(this));
162	// Default does nothing.
163	debug("Default socket detach callback called on socket detach for socket"
164			" at %p", static_cast<void*>(this));
546	// Handle exceptions when attaching to clean up properly.
547	debug("Created new socket for socket at %p, domain %i, type %i,"
548			" protocol %i", static_cast<void*>(this), domain, type, protocol);
585		throw os_error("Failed to set socket option to specified value");
586	debug("Set socket option %i/%i to %i for socket at %p", level, optname,
587			val, static_cast<void*>(this));
723 */
724socket::~socket() {
725	// Check for detached socket; if not, detach socket now.
socket.hh https://bitbucket.org/modelnine/protoproxy | C++ Header | 450 lines
62	/**
63	 * Proxy socket as a specialized subclass of socket may access internal
64	 * fields of the socket directly.
241	 */
242	explicit socket(bool destroy = true, logdomain defdomain = SOCKET);
243
263	 */
264	explicit socket(int fd, bool destroy = true, logdomain defdomain = SOCKET);
265
359	 * Bind the current socket to the passed address, setting up the binding
360	 * as specified. It is only valid to bind a socket when the socket has
361	 * been created.
416	 * Clean up the socket, destroying any remaining internal state of the
417	 * socket in the process. This detaches the socket from a reactor in case
418	 * it is still bound to one, but will not call handle_detach() on the
socket.cpp https://bitbucket.org/sourcey/libsourcey.git | C++ | 785 lines
171
172Socket::Socket(Socket* base, bool shared) : //, SocketAdapter* adapter
173	_base(base), 
185
186Socket::Socket(const Socket& socket) : //, SocketAdapter* adapter
187	_base(socket._base), 
196	
197Socket& Socket::operator = (const Socket& socket)
198{
469
470SocketAdapter::SocketAdapter(Socket::Ptr socket) : //, int priority
471	socket(socket)//, priority(priority)
548/*
549void Socket::swapObserver(SocketAdapter* a, SocketAdapter* b)
550{
Socket.d https://bitbucket.org/coder78/tutorial | D | 1,236 lines
208	{
209		// GSocket * g_socket_new (GSocketFamily family,  GSocketType type,  GSocketProtocol protocol,  GError **error);
210		GError* err = null;
546	{
547		// gssize g_socket_receive_message (GSocket *socket,  GSocketAddress **address,  GInputVector *vectors,  gint num_vectors,  GSocketControlMessage ***messages,  gint *num_messages,  gint *flags,  GCancellable *cancellable,  GError **error);
548		GSocketAddress* outaddress = (address is null) ? null : address.getSocketAddressStruct();
715	{
716		// gssize g_socket_send_message (GSocket *socket,  GSocketAddress *address,  GOutputVector *vectors,  gint num_vectors,  GSocketControlMessage **messages,  gint num_messages,  gint flags,  GCancellable *cancellable,  GError **error);
717		GSocketControlMessage* outmessages = messages.ptr;
1156	{
1157		// GSocketAddress * g_socket_get_remote_address (GSocket *socket,  GError **error);
1158		GError* err = null;
1180	{
1181		// GSocketType g_socket_get_socket_type (GSocket *socket);
1182		return g_socket_get_socket_type(gSocket);
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21