PageRenderTime 15ms queryFilters 54ms Sphinxql 114ms app.CodeModel.GetByIds 118ms findMatchingLines 100ms GetByIds 218ms meta 0ms repositoryFilters 3ms languageFilters 2ms sourceFilters 3ms

624,987 results for 'socket repo:springyweb/juggernaut' (15 ms)

Source

Language

Repository

socket.h https://github.com/shehperd/Espruino.git | C++ Header | 462 lines
4//! \brief SOCKET APIs Header file.
5//! \details SOCKET APIs like as berkeley socket api. 
6//! \version 1.0.0
42/**
43 * @defgroup WIZnet_socket_APIs 1. WIZnet socket APIs
44 * @brief WIZnet socket APIs are based on Berkeley socket APIs,  thus it has much similar name and interface.
61 * There are @b bind() and @b accept() functions in @b Berkeley SOCKET API but,
62 * not in @b WIZnet SOCKET API. Because socket() of WIZnet is not only creating a SOCKET but also binding a local port number,
63 * and listen() of WIZnet is not only listening to connection request from client but also accepting the connection request. \n
73 * If there're many listen SOCKET with same listen port number and a client requests a connection,
74 * the SOCKET which has the smallest SOCKET number accepts the request and is changed as communication SOCKET. \n
75 * Following figure shows network flow diagram by WIZnet SOCKET API.
362{
363   SO_FLAG,           ///< Valid only in getsockopt(), For set flag of socket refer to <I>flag</I> in @ref socket().
364   SO_TTL,              ///< Set/Get TTL. @ref Sn_TTL  ( @ref setSn_TTL(), @ref getSn_TTL() )
socket.io.js https://github.com/eheb/socket.io.git | JavaScript | 1,384 lines
187        request(srv)
188        .get('/socket.io/socket.io.js')
189        .end(function(err, res){
422          sio.of('/news', function(socket){
423            expect(socket).to.be.a(Socket);
424            --total || done();
1244  describe('middleware', function(done){
1245    var Socket = require('../lib/socket');
1246
1251      sio.use(function(socket, next){
1252        expect(socket).to.be.a(Socket);
1253        run++;
1256      sio.use(function(socket, next){
1257        expect(socket).to.be.a(Socket);
1258        run++;
socket.rst https://bitbucket.org/G_will/python3-docs-zh_cn | Unknown | 1,077 lines
766
767   Send data to the socket.  The socket must be connected to a remote socket.  The
768   optional *flags* argument has the same meaning as for :meth:`recv` above.
775
776   Send data to the socket.  The socket must be connected to a remote socket.  The
777   optional *flags* argument has the same meaning as for :meth:`recv` above.
936   PORT = 50007              # Arbitrary non-privileged port
937   s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
938   s.bind((HOST, PORT))
954   PORT = 50007              # The same port as used by the server
955   s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
956   s.connect((HOST, PORT))
1044   # create a raw socket and bind it to the public interface
1045   s = socket.socket(socket.AF_INET, socket.SOCK_RAW, socket.IPPROTO_IP)
1046   s.bind((HOST, 0))
socket.rst https://bitbucket.org/matthewlmcclure/cpython | Unknown | 1,436 lines
1227   PORT = 50007              # Arbitrary non-privileged port
1228   s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
1229   s.bind((HOST, PORT))
1245   PORT = 50007              # The same port as used by the server
1246   s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
1247   s.connect((HOST, PORT))
1335   # create a raw socket and bind it to the public interface
1336   s = socket.socket(socket.AF_INET, socket.SOCK_RAW, socket.IPPROTO_IP)
1337   s.bind((HOST, 0))
1354
1355    socket.socket(socket.AF_CAN, socket.SOCK_DGRAM, socket.CAN_BCM)
1356
1382   # create a raw socket and bind it to the 'vcan0' interface
1383   s = socket.socket(socket.AF_CAN, socket.SOCK_RAW, socket.CAN_RAW)
1384   s.bind(('vcan0',))
socket.rst https://bitbucket.org/python_mirrors/features-pep-433 | Unknown | 1,425 lines
1225   PORT = 50007              # Arbitrary non-privileged port
1226   s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
1227   s.bind((HOST, PORT))
1243   PORT = 50007              # The same port as used by the server
1244   s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
1245   s.connect((HOST, PORT))
1333   # create a raw socket and bind it to the public interface
1334   s = socket.socket(socket.AF_INET, socket.SOCK_RAW, socket.IPPROTO_IP)
1335   s.bind((HOST, 0))
1371   # create a raw socket and bind it to the 'vcan0' interface
1372   s = socket.socket(socket.AF_CAN, socket.SOCK_RAW, socket.CAN_RAW)
1373   s.bind(('vcan0',))
1400
1401   s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
1402   s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
socket.rst https://bitbucket.org/atsuoishimoto/cpython | Unknown | 1,516 lines
1307   PORT = 50007              # Arbitrary non-privileged port
1308   s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
1309   s.bind((HOST, PORT))
1325   PORT = 50007              # The same port as used by the server
1326   s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
1327   s.connect((HOST, PORT))
1415   # create a raw socket and bind it to the public interface
1416   s = socket.socket(socket.AF_INET, socket.SOCK_RAW, socket.IPPROTO_IP)
1417   s.bind((HOST, 0))
1434
1435    socket.socket(socket.AF_CAN, socket.SOCK_DGRAM, socket.CAN_BCM)
1436
1462   # create a raw socket and bind it to the 'vcan0' interface
1463   s = socket.socket(socket.AF_CAN, socket.SOCK_RAW, socket.CAN_RAW)
1464   s.bind(('vcan0',))
socket.h https://bitbucket.org/klenkovic/ns-3-dev-logging-fixes | C++ Header | 976 lines
43 * \ingroup network
44 * \defgroup socket Socket
45 */
113   */
114  virtual enum Socket::SocketErrno GetErrno (void) const = 0;
115  /**
117    */
118  virtual enum Socket::SocketType GetSocketType (void) const = 0;
119  /**
598   * For IP_PKTINFO/IP6_PKTINFO. This method is only usable for 
599   * Raw socket and Datagram Socket. Not supported for Stream socket.
600   *
773   * This method corresponds to using setsockopt () IPV6_RECVHOPLIMIT of real
774   * network or BSD sockets. In our implementation, the socket simply 
775   * adds a SocketIpv6HopLimitTag tag to the packet before passing the
lm-old-socket.c https://github.com/mhallendal/loudmouth.git | C | 1,064 lines
91
92static void         socket_free                    (LmOldSocket    *socket);
93static gboolean     socket_do_connect              (LmConnectData  *connect_data);
142static gint
143old_socket_do_write (LmOldSocket *socket, const gchar *buf, guint len)
144{
1036void
1037lm_old_socket_asyncns_cancel (LmOldSocket *socket)
1038{
1046gboolean
1047lm_old_socket_get_use_starttls (LmOldSocket *socket)
1048{
1056gboolean
1057lm_old_socket_get_require_starttls (LmOldSocket *socket)
1058{
Socket.h https://github.com/Canno/mangos.git | C Header | 739 lines
75		Socket *GetSocket() const { return m_socket; }
76		SocketThread(const SocketThread& s) : m_socket(s.GetSocket()) {}
77		SocketThread& operator=(const SocketThread& ) { return *this; }
138	/** "Default" constructor */
139	Socket(ISocketHandler&);
140
679private:
680	ISocketHandler& m_handler; ///< Reference of ISocketHandler in control of this socket
681	SOCKET m_socket; ///< File descriptor
684	time_t m_tCreate; ///< Time in seconds when this socket was created
685	Socket *m_parent; ///< Pointer to ListenSocket class, valid for incoming sockets
686	bool m_b_disable_read; ///< Disable checking for read events
711#ifdef ENABLE_POOL
712	int m_socket_type; ///< Type of socket, from socket() call
713	std::string m_socket_protocol; ///< Protocol, from socket() call
lm-old-socket.c https://github.com/engineyard/loudmouth.git | C | 1,062 lines
93
94static void         socket_free                    (LmOldSocket    *socket);
95static gboolean     socket_do_connect              (LmConnectData  *connect_data);
144static gint
145old_socket_do_write (LmOldSocket *socket, const gchar *buf, guint len)
146{
1034void
1035lm_old_socket_asyncns_cancel (LmOldSocket *socket)
1036{
1044gboolean
1045lm_old_socket_get_use_starttls (LmOldSocket *socket)
1046{
1054gboolean
1055lm_old_socket_get_require_starttls (LmOldSocket *socket)
1056{
postgresql-socket-api.lisp https://github.com/UnwashedMeme/clsql.git | Lisp | 973 lines
415                                 :defaults host))))
416       (socket:make-socket :type :stream :address-family :file
417                           :connect :active
608  (let ((socket (postgresql-connection-socket connection)))
609    (and socket (streamp socket) (open-stream-p socket))))
610
940            (#.+completed-response-message+
941             (return (values nil (read-socket-value-string socket))))
942            (#.+error-response-message+
942            (#.+error-response-message+
943             (let ((message (read-socket-value-string socket)))
944               (error 'postgresql-error
946            (#.+notice-response-message+
947             (let ((message (read-socket-value-string socket)))
948               (warn 'postgresql-warning
lm-old-socket.c https://github.com/mcabber/loudmouth.git | C | 1,067 lines
93
94static void         socket_free                    (LmOldSocket    *socket);
95static gboolean     socket_do_connect              (LmConnectData  *connect_data);
144static gint
145old_socket_do_write (LmOldSocket *socket, const gchar *buf, guint len)
146{
1038void
1039lm_old_socket_asyncns_cancel (LmOldSocket *socket)
1040{
1048gboolean
1049lm_old_socket_get_use_starttls (LmOldSocket *socket)
1050{
1058gboolean
1059lm_old_socket_get_require_starttls (LmOldSocket *socket)
1060{
Socket.java https://github.com/tisoft/xmlvm.git | Java | 1,147 lines
302     */
303    protected Socket(SocketImpl anImpl) throws SocketException {
304        impl = anImpl;
796     */
797    public SocketAddress getLocalSocketAddress() {
798        if (!isBound()) {
1040    /**
1041     * Gets the setting of the socket option {@code SocketOptions.SO_OOBINLINE}.
1042     * 
1055    /**
1056     * Sets the value of the {@code SocketOptions.IP_TOS} for this socket. See
1057     * the specification RFC 1349 for more information about the type of service
1075    /**
1076     * Gets the value of the socket option {@code SocketOptions.IP_TOS}.
1077     * 
postgresql-socket-api.lisp https://github.com/thijs/clsql-fork.git | Lisp | 930 lines
420    (string
421     (socket:socket-connect
422      port host
564  (let ((socket (postgresql-connection-socket connection)))
565    (and socket (streamp socket) (open-stream-p socket))))
566
896            (#.+completed-response-message+
897             (return (values nil (read-socket-value-string socket))))
898            (#.+error-response-message+
898            (#.+error-response-message+
899             (let ((message (read-socket-value-string socket)))
900               (error 'postgresql-error
902            (#.+notice-response-message+
903             (let ((message (read-socket-value-string socket)))
904               (warn 'postgresql-warning
Socket.hsc https://github.com/gitpan/Language-Haskell.git | Unknown | 1,856 lines
57#if defined(DOMAIN_SOCKET_SUPPORT)
58    socketPair,         -- :: Family -> SocketType -> ProtocolNumber -> IO (Socket, Socket)
59#endif
98    getSocketOption,     -- :: Socket -> SocketOption -> IO Int
99    setSocketOption,     -- :: Socket -> SocketOption -> Int -> IO ()
100
457
458bindSocket :: Socket	-- Unconnected Socket
459	   -> SockAddr	-- Address to Bind to
461
462bindSocket (MkSocket s _family _stype _protocol socketStatus) addr = do
463 modifyMVar_ socketStatus $ \ status -> do
714
715socketPort :: Socket		-- Connected & Bound Socket
716	   -> IO PortNumber	-- Port Number of Socket
socket.rst https://github.com/pieper/python.git | Unknown | 952 lines
679
680   Send data to the socket.  The socket must be connected to a remote socket.  The
681   optional *flags* argument has the same meaning as for :meth:`recv` above.
688
689   Send data to the socket.  The socket must be connected to a remote socket.  The
690   optional *flags* argument has the same meaning as for :meth:`recv` above.
829   PORT = 50007              # Arbitrary non-privileged port
830   s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
831   s.bind((HOST, PORT))
847   PORT = 50007              # The same port as used by the server
848   s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
849   s.connect((HOST, PORT))
937   # create a raw socket and bind it to the public interface
938   s = socket.socket(socket.AF_INET, socket.SOCK_RAW, socket.IPPROTO_IP)
939   s.bind((HOST, 0))
socket.c https://github.com/fizx/ruby.git | C | 1,845 lines
33 *
34 *   Socket.new(:INET, :STREAM) # TCP socket
35 *   Socket.new(:INET, :DGRAM)  # UDP socket
81 *   Socket.pair(domain, type, protocol)       => [socket1, socket2]
82 *   Socket.socketpair(domain, type, protocol) => [socket1, socket2]
83 *
228 *   is too small or is not a valid part of the user space address
229 * * Errno::EINVAL - the +socket+ is a listening socket
230 * * Errno::EISCONN - the +socket+ is already connected
1802
1803    rb_cSocket = rb_define_class("Socket", rb_cBasicSocket);
1804
1818
1819    rb_define_singleton_method(rb_cSocket, "socketpair", rsock_sock_s_socketpair, -1);
1820    rb_define_singleton_method(rb_cSocket, "pair", rsock_sock_s_socketpair, -1);
socket.c https://github.com/wanabe/ruby.git | C | 1,854 lines
33 *
34 *   Socket.new(:INET, :STREAM) # TCP socket
35 *   Socket.new(:INET, :DGRAM)  # UDP socket
81 *   Socket.pair(domain, type, protocol)       => [socket1, socket2]
82 *   Socket.socketpair(domain, type, protocol) => [socket1, socket2]
83 *
228 *   is too small or is not a valid part of the user space address
229 * * Errno::EINVAL - the +socket+ is a listening socket
230 * * Errno::EISCONN - the +socket+ is already connected
1811
1812    rb_cSocket = rb_define_class("Socket", rb_cBasicSocket);
1813
1827
1828    rb_define_singleton_method(rb_cSocket, "socketpair", rsock_sock_s_socketpair, -1);
1829    rb_define_singleton_method(rb_cSocket, "pair", rsock_sock_s_socketpair, -1);
socket.c https://github.com/jhs/ruby-inabox.git | C | 2,124 lines
203 *   Socket.pair(domain, type, protocol)       => [socket1, socket2]
204 *   Socket.socketpair(domain, type, protocol) => [socket1, socket2]
205 *
1989     * machine or between different machines.  There are many types of socket:
1990     * TCPSocket, UDPSocket or UNIXSocket for example.
1991     *
2018     *
2019     * Many of the classes, such as TCPSocket, UDPSocket or UNIXSocket,
2020     * ease the use of sockets comparatively to the equivalent C programming interface.
2087     */
2088    rb_cSocket = rb_define_class("Socket", rb_cBasicSocket);
2089
2103
2104    rb_define_singleton_method(rb_cSocket, "socketpair", rsock_sock_s_socketpair, -1);
2105    rb_define_singleton_method(rb_cSocket, "pair", rsock_sock_s_socketpair, -1);
Socket.java https://github.com/PouzinSociety/tinos.git | Java | 1,277 lines
155	 */
156  protected Socket(SocketImpl impl) throws SocketException
157  {
327
328  private SocketImpl getImpl() throws SocketException
329  {
1130    if (isClosed())
1131      throw new SocketException("socket is closed");
1132
1153    if (isClosed())
1154      throw new SocketException("socket is closed");
1155
1173    if (isClosed())
1174      throw new SocketException("socket is closed");
1175
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21