PageRenderTime 59ms queryFilters 0ms Sphinxql 534ms GetByIds 494ms meta 0ms repositoryFilters 40ms languageFilters 3ms sourceFilters 16ms

1,422,939 results for 'socket repo:IronNerd/libsos' (59 ms)

Source

Language

Repository

socket.io.js https://bitbucket.org/ggerrietts/pnad | JavaScript | 3,818 lines
100
101    socket = socket || io.sockets[uuri];
102
1469   *
1470   * @param {Socket} socket The socket instance that needs a transport
1471   * @param {Function} fn The callback
3202          usesXDomReq = (global.XDomainRequest && request instanceof XDomainRequest),
3203          socketProtocol = (socket && socket.options && socket.options.secure ? 'https:' : 'http:'),
3204          isXProtocol = (socketProtocol != global.location.protocol);
3534   *
3535   * @param {Socket} socket The socket instance that needs a transport
3536   * @param {Function} fn The callback
3767   *
3768   * @param {Socket} socket The socket instance that needs a transport
3769   * @param {Function} fn The callback
socket.py https://bitbucket.org/geiregaj/pylabs-core-5.1 | Python | 355 lines
75    def new(cls):
76        return cls(_socket.socket(_socket.AF_INET, _socket.SOCK_STREAM))
77
94    @classmethod
95    def from_file_descriptor(cls, fd, socket_family = _socket.AF_UNIX, socket_type = _socket.SOCK_STREAM, socket_state = STATE_INIT):
96        return cls(_socket.fromfd(fd, socket_family, socket_type), socket_state)
121    def set_reuse_address(self, reuse_address):
122        self.socket.setsockopt(_socket.SOL_SOCKET, _socket.SO_REUSEADDR, int(reuse_address))
123
127    def set_recv_buffer_size(self, n):
128        self.socket.setsockopt(_socket.SOL_SOCKET, _socket.SO_RCVBUF, n)
129
255
256    def read_socket(self, socket_class = None, socket_family =  _socket.AF_INET, socket_type = _socket.SOCK_STREAM, socket_state = STATE_INIT, timeout = TIMEOUT_CURRENT):
257        """reads a socket from this socket"""
socket.rst https://bitbucket.org/ctheune/cpython | Unknown | 1,521 lines
1313   PORT = 50007              # Arbitrary non-privileged port
1314   s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
1315   s.bind((HOST, PORT))
1331   PORT = 50007              # The same port as used by the server
1332   s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
1333   s.connect((HOST, PORT))
1421   # create a raw socket and bind it to the public interface
1422   s = socket.socket(socket.AF_INET, socket.SOCK_RAW, socket.IPPROTO_IP)
1423   s.bind((HOST, 0))
1440
1441    socket.socket(socket.AF_CAN, socket.SOCK_DGRAM, socket.CAN_BCM)
1442
1468   # create a raw socket and bind it to the 'vcan0' interface
1469   s = socket.socket(socket.AF_CAN, socket.SOCK_RAW, socket.CAN_RAW)
1470   s.bind(('vcan0',))
socket.io.js https://bitbucket.org/larchange/game | JavaScript | 3,788 lines
97
98    socket = socket || io.sockets[uuri];
99
1457   *
1458   * @param {Socket} socket The socket instance that needs a transport
1459   * @param {Function} fn The callback
3174          usesXDomReq = (global.XDomainRequest && request instanceof XDomainRequest),
3175          socketProtocol = (socket && socket.options && socket.options.secure ? 'https:' : 'http:'),
3176          isXProtocol = (socketProtocol != global.location.protocol);
3506   *
3507   * @param {Socket} socket The socket instance that needs a transport
3508   * @param {Function} fn The callback
3738   *
3739   * @param {Socket} socket The socket instance that needs a transport
3740   * @param {Function} fn The callback
socket.io.js https://bitbucket.org/larchange/game | JavaScript | 3,788 lines
97
98    socket = socket || io.sockets[uuri];
99
1457   *
1458   * @param {Socket} socket The socket instance that needs a transport
1459   * @param {Function} fn The callback
3174          usesXDomReq = (global.XDomainRequest && request instanceof XDomainRequest),
3175          socketProtocol = (socket && socket.options && socket.options.secure ? 'https:' : 'http:'),
3176          isXProtocol = (socketProtocol != global.location.protocol);
3506   *
3507   * @param {Socket} socket The socket instance that needs a transport
3508   * @param {Function} fn The callback
3738   *
3739   * @param {Socket} socket The socket instance that needs a transport
3740   * @param {Function} fn The callback
socket.io.js https://bitbucket.org/larchange/game | JavaScript | 3,788 lines
97
98    socket = socket || io.sockets[uuri];
99
1457   *
1458   * @param {Socket} socket The socket instance that needs a transport
1459   * @param {Function} fn The callback
3174          usesXDomReq = (global.XDomainRequest && request instanceof XDomainRequest),
3175          socketProtocol = (socket && socket.options && socket.options.secure ? 'https:' : 'http:'),
3176          isXProtocol = (socketProtocol != global.location.protocol);
3506   *
3507   * @param {Socket} socket The socket instance that needs a transport
3508   * @param {Function} fn The callback
3738   *
3739   * @param {Socket} socket The socket instance that needs a transport
3740   * @param {Function} fn The callback
socket.io.js https://bitbucket.org/larchange/game | JavaScript | 3,788 lines
97
98    socket = socket || io.sockets[uuri];
99
1457   *
1458   * @param {Socket} socket The socket instance that needs a transport
1459   * @param {Function} fn The callback
3174          usesXDomReq = (global.XDomainRequest && request instanceof XDomainRequest),
3175          socketProtocol = (socket && socket.options && socket.options.secure ? 'https:' : 'http:'),
3176          isXProtocol = (socketProtocol != global.location.protocol);
3506   *
3507   * @param {Socket} socket The socket instance that needs a transport
3508   * @param {Function} fn The callback
3738   *
3739   * @param {Socket} socket The socket instance that needs a transport
3740   * @param {Function} fn The callback
socket.io.js https://bitbucket.org/larchange/game | JavaScript | 3,788 lines
97
98    socket = socket || io.sockets[uuri];
99
1457   *
1458   * @param {Socket} socket The socket instance that needs a transport
1459   * @param {Function} fn The callback
3174          usesXDomReq = (global.XDomainRequest && request instanceof XDomainRequest),
3175          socketProtocol = (socket && socket.options && socket.options.secure ? 'https:' : 'http:'),
3176          isXProtocol = (socketProtocol != global.location.protocol);
3506   *
3507   * @param {Socket} socket The socket instance that needs a transport
3508   * @param {Function} fn The callback
3738   *
3739   * @param {Socket} socket The socket instance that needs a transport
3740   * @param {Function} fn The callback
socket.h https://bitbucket.org/nsnam/ns-3-dev | C++ Header | 1,396 lines
43 * \ingroup network
44 * \defgroup socket Socket
45 */
164    */
165  virtual enum Socket::SocketType GetSocketType (void) const = 0;
166  /**
235   *        This callback is intended to notify a 
236   *        socket that would have been blocked in a blocking socket model
237   *        that space is available in the transmit buffer and that it
662   * For IP_PKTINFO/IP6_PKTINFO. This method is only usable for 
663   * Raw socket and Datagram Socket. Not supported for Stream socket.
664   *
938   *
939   * \param ipv6RecvHopLimit Whether the socket should add SocketIpv6HopLimitTag tag
940   * to the packet
socket.io.js https://bitbucket.org/nshetty/plotting-cpu-graph-in-near-real-time-with-gevent-socket.io | JavaScript | 3,818 lines
100
101    socket = socket || io.sockets[uuri];
102
1469   *
1470   * @param {Socket} socket The socket instance that needs a transport
1471   * @param {Function} fn The callback
3202          usesXDomReq = (global.XDomainRequest && request instanceof XDomainRequest),
3203          socketProtocol = (socket && socket.options && socket.options.secure ? 'https:' : 'http:'),
3204          isXProtocol = (socketProtocol != global.location.protocol);
3534   *
3535   * @param {Socket} socket The socket instance that needs a transport
3536   * @param {Function} fn The callback
3767   *
3768   * @param {Socket} socket The socket instance that needs a transport
3769   * @param {Function} fn The callback
socket.po https://bitbucket.org/pydocja/py33 | Portable Object | 1,670 lines
397"Constants for Windows' WSAIoctl(). The constants are used as arguments to "
398"the :meth:`~socket.socket.ioctl` method of socket objects."
399msgstr ""
1205"sockets), :meth:`recvmsg` will return, in its ancillary data, items of the "
1206"form ``(socket.SOL_SOCKET, socket.SCM_RIGHTS, fds)``, where *fds* is a "
1207":class:`bytes` object representing the new file descriptors as a binary "
1285msgid ""
1286"Send data to the socket.  The socket must be connected to a remote socket.  "
1287"The optional *flags* argument has the same meaning as for :meth:`recv` "
1297msgid ""
1298"Send data to the socket.  The socket must be connected to a remote socket.  "
1299"The optional *flags* argument has the same meaning as for :meth:`recv` "
1555":func:`.socket`, :meth:`~socket.connect`.  Also note that the server does "
1556"not :meth:`~socket.sendall`/:meth:`~socket.recv` on the socket it is "
1557"listening on but on the new socket returned by :meth:`~socket.accept`."
socket.rst https://bitbucket.org/pydocja/py33 | Unknown | 1,441 lines
1241   PORT = 50007              # Arbitrary non-privileged port
1242   s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
1243   s.bind((HOST, PORT))
1259   PORT = 50007              # The same port as used by the server
1260   s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
1261   s.connect((HOST, PORT))
1349   # create a raw socket and bind it to the public interface
1350   s = socket.socket(socket.AF_INET, socket.SOCK_RAW, socket.IPPROTO_IP)
1351   s.bind((HOST, 0))
1387   # create a raw socket and bind it to the 'vcan0' interface
1388   s = socket.socket(socket.AF_CAN, socket.SOCK_RAW, socket.CAN_RAW)
1389   s.bind(('vcan0',))
1416
1417   s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
1418   s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
socket.rst.diff https://bitbucket.org/pydocja/py26 | diff | 410 lines
137+
138+      >>> socket.getaddrinfo("www.python.org", 80, 0, 0, socket.SOL_TCP)
139+      [(2, 1, 6, '', ('82.94.164.162', 80)),
260 
261    Send data to the socket.  The socket must be connected to a remote socket.  The
262    optional *flags* argument has the same meaning as for :meth:`recv` above.
391-socket returned by :meth:`accept`.
392+:meth:`~socket.bind`, :meth:`~socket.listen`, :meth:`~socket.accept` (possibly
393+repeating the :meth:`~socket.accept` to service more than one client), while a
395+note that the server does not :meth:`~socket.send`/:meth:`~socket.recv` on the
396+socket it is listening on but on the new socket returned by
397+:meth:`~socket.accept`.
405    PORT = 50007              # Arbitrary non-privileged port
406    s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
407    s.bind((HOST, PORT))
Socket.java https://bitbucket.org/jpilliet/libcore-292 | Java | 991 lines
278    /**
279     * Creates an unconnected socket with the given socket implementation.
280     *
285     */
286    protected Socket(SocketImpl impl) throws SocketException {
287        this.impl = impl;
907    /**
908     * Sets this socket's {@link SocketOptions#IP_TOS} value for every packet sent by this socket.
909     */
918    /**
919     * Returns this socket's {@see SocketOptions#IP_TOS} setting.
920     */
954    /**
955     * Returns this socket's {@code SocketChannel}, if one exists. A channel is
956     * available only if this socket wraps a channel. (That is, you can go from a
socket.go https://bitbucket.org/zuko_uno/unisearch.git | Go | 529 lines
183	if socket.dead != nil {
184		debugf("Socket %p to %s: killed again: %s (previously: %s)", socket, socket.addr, err.Error(), socket.dead.Error())
185		socket.Unlock()
197	for _, f := range replyFuncs {
198		logf("Socket %p to %s: notifying replyFunc of closed socket: %s", socket, socket.addr, err.Error())
199		f(err, nil, -1, nil)
257			}
258			debugf("Socket %p to %s: serializing update document: %#v", socket, socket.addr, op.update)
259			buf, err = addBSON(buf, op.update)
331		socket.Unlock()
332		debug("Socket %p to %s: failing query, already closed: %s", socket, socket.addr, socket.dead.Error())
333		// XXX This seems necessary in case the session is closed concurrently
445					if err := bson.Unmarshal(b, m); err == nil {
446						debugf("Socket %p to %s: received document: %#v", socket, socket.addr, m)
447					}
socket.texi https://bitbucket.org/Mali_Laurent/ps50c550.git | Unknown | 3,197 lines
251
252A socket newly created with the @code{socket} function has no
253address.  Other processes can find it for communication only if you
2913                                 socket options.
2914* Socket-Level Options::        Details of the options at the socket level.
2915@end menu
2927The @code{getsockopt} function gets information about the value of
2928option @var{optname} at level @var{level} for socket @var{socket}.
2929
2946@item ENOTSOCK
2947The descriptor @var{socket} is not a socket.
2948
2957This function is used to set the socket option @var{optname} at level
2958@var{level} for socket @var{socket}.  The value of the option is passed
2959in the buffer @var{optval} of size @var{optlen}.
Socket.java https://bitbucket.org/generalplus/android_libcore.git | Java | 990 lines
277    /**
278     * Creates an unconnected socket with the given socket implementation.
279     *
284     */
285    protected Socket(SocketImpl impl) throws SocketException {
286        this.impl = impl;
906    /**
907     * Sets this socket's {@link SocketOptions#IP_TOS} value for every packet sent by this socket.
908     */
917    /**
918     * Returns this socket's {@see SocketOptions#IP_TOS} setting.
919     */
953    /**
954     * Returns this socket's {@code SocketChannel}, if one exists. A channel is
955     * available only if this socket wraps a channel. (That is, you can go from a
socket.test https://bitbucket.org/staceyoi/bb101repo.git | Unknown | 1,382 lines
221socket -server command ?-myaddr addr? port}}
222test socket-1.8 {arg parsing for socket command} {
223    list [catch {socket -froboz} msg] $msg
1233} {{divide by zero}}
1234test socket-11.10 {testing socket specific options} {
1235    sendCommand {
1235    sendCommand {
1236	set socket10_12_test_server [socket -server accept 2836]
1237	proc accept {s a p} {close $s}
1249    sendCommand {
1250	set socket10_13_test_server [socket -server accept 2836]
1251	proc accept {s a p} {
1307    sendCommand {
1308	set socket10_14_test_server [socket -server accept 2836]
1309	proc accept {s a p} {
Socket.java https://bitbucket.org/seandroid/libcore.git | Java | 990 lines
277    /**
278     * Creates an unconnected socket with the given socket implementation.
279     *
284     */
285    protected Socket(SocketImpl impl) throws SocketException {
286        this.impl = impl;
906    /**
907     * Sets this socket's {@link SocketOptions#IP_TOS} value for every packet sent by this socket.
908     */
917    /**
918     * Returns this socket's {@see SocketOptions#IP_TOS} setting.
919     */
953    /**
954     * Returns this socket's {@code SocketChannel}, if one exists. A channel is
955     * available only if this socket wraps a channel. (That is, you can go from a
Socket.java https://bitbucket.org/thelearninglabs/uclinux-distro-tll-public.git | Java | 1,288 lines
54/**
55 * This class models a client site socket.  A socket is a TCP/IP endpoint
56 * for network communications conceptually similar to a file handle.
139   */
140  protected Socket(SocketImpl impl) throws SocketException
141  {
332
333  private SocketImpl getImpl() throws SocketException
334  {
1183    if (isClosed())
1184      throw new SocketException("socket is closed");
1185
1208    if (isClosed())
1209      throw new SocketException("socket is closed");
1210
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21