PageRenderTime 17ms queryFilters 30ms Sphinxql 160ms app.CodeModel.GetByIds 2292ms findMatchingLines 155ms GetByIds 2447ms meta 0ms repositoryFilters 9ms languageFilters 8ms sourceFilters 5ms

624,987 results for 'socket repo:ivenvd/gitlab-ce' (17 ms)

Source

Language

Repository

socket.c https://bitbucket.org/digetx/picasso-kernel.git | C | 1,900 lines
1/*
2 * net/tipc/socket.c: TIPC socket API
3 *
1813	.connect	= connect,
1814	.socketpair	= sock_no_socketpair,
1815	.accept		= accept,
1834	.connect	= connect,
1835	.socketpair	= sock_no_socketpair,
1836	.accept		= accept,
1862/**
1863 * tipc_socket_init - initialize TIPC socket interface
1864 *
1889/**
1890 * tipc_socket_stop - stop TIPC socket interface
1891 */
socket.rst https://bitbucket.org/mirror/python-py3k | Unknown | 886 lines
622
623   Send data to the socket.  The socket must be connected to a remote socket.  The
624   optional *flags* argument has the same meaning as for :meth:`recv` above.
631
632   Send data to the socket.  The socket must be connected to a remote socket.  The
633   optional *flags* argument has the same meaning as for :meth:`recv` above.
763   PORT = 50007              # Arbitrary non-privileged port
764   s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
765   s.bind((HOST, PORT))
781   PORT = 50007              # The same port as used by the server
782   s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
783   s.connect((HOST, PORT))
871   # create a raw socket and bind it to the public interface
872   s = socket.socket(socket.AF_INET, socket.SOCK_RAW, socket.IPPROTO_IP)
873   s.bind((HOST, 0))
acl-socket.lisp https://bitbucket.org/mt/biobike | Lisp | 284 lines
9(defclass server-socket ()
10  ((socket :initarg :socket :reader socket
11           :initform (error "No value supplied for socket"))
42                                   :input (if (numberp wait) wait nil))
43      (let* ((socket (socket-accept (socket server-socket)))
44             (stream (socket-make-stream socket
57  (multiple-value-bind (rbuf len address port)
58      (socket-receive (socket socket) buffer size)
59    (declare (ignore port))
231    (if (and (typep socket-stream 'chunked-stream)
232             (setq socket (getf (stream-plist socket-stream) :socket)))
233        (nth-value 1 (socket-peername socket))
249    (chunked-stream (let ((socket (getf (stream-plist thing) :socket)))
250                      (if socket (nth-value 1 (socket-name socket))
251                        (progn (warn "Socket not in plist of ~S -- could not get local port" thing)
Socket.h https://bitbucket.org/cugraphics/flight | C++ Header | 747 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
686private:
687	ISocketHandler& m_handler; ///< Reference of ISocketHandler in control of this socket
688	SOCKET m_socket; ///< File descriptor
691	time_t m_tCreate; ///< Time in seconds when this socket was created
692	Socket *m_parent; ///< Pointer to ListenSocket class, valid for incoming sockets
693	bool m_b_disable_read; ///< Disable checking for read events
718#ifdef ENABLE_POOL
719	int m_socket_type; ///< Type of socket, from socket() call
720	std::string m_socket_protocol; ///< Protocol, from socket() call
socket.txt https://bitbucket.org/andrikmb/py3k-doc | Unknown | 887 lines
623
624   Send data to the socket.  The socket must be connected to a remote socket.  The
625   optional *flags* argument has the same meaning as for :meth:`recv` above.
632
633   Send data to the socket.  The socket must be connected to a remote socket.  The
634   optional *flags* argument has the same meaning as for :meth:`recv` above.
764   PORT = 50007              # Arbitrary non-privileged port
765   s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
766   s.bind((HOST, PORT))
782   PORT = 50007              # The same port as used by the server
783   s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
784   s.connect((HOST, PORT))
872   # create a raw socket and bind it to the public interface
873   s = socket.socket(socket.AF_INET, socket.SOCK_RAW, socket.IPPROTO_IP)
874   s.bind((HOST, 0))
socket.scm https://bitbucket.org/ebb/scheme48 | Lisp | 349 lines
70  (cond
71   ((or (socket-input-port socket) (socket-output-port socket))
72    (cond 
129	 (newsock (channel->socket (socket-address-family socket)
130				   (socket-socket-type socket)
131				   channel)))
168(define (shutdown-socket socket how)
169  (shutdown-socket-channel (socket-channel socket) how))
170
285(define (socket-ipv6-join-group! socket address interface)
286  (external-ipv6-socket-join-group (socket-channel socket)
287				   (socket-address-raw address)
293(define (socket-ipv6-leave-group! socket address interface)
294  (external-ipv6-socket-leave-group (socket-channel socket)
295				    (socket-address-raw address)
socket.txt https://bitbucket.org/ymotongpoo/jython25_ja | Unknown | 911 lines
173   Many constants of these forms, documented in the Unix documentation
174   on sockets and/or the IP protocol, are also defined in the socket
175   module. They are generally used in arguments to the
792   PORT = 50007              # Arbitrary non-privileged port
793   s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
794   s.bind((HOST, PORT))
808   PORT = 50007              # The same port as used by the server
809   s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
810   s.connect((HOST, PORT))
864   s = None
865   for res in socket.getaddrinfo(HOST, PORT, socket.AF_UNSPEC, socket.SOCK_STREAM):
866       af, socktype, proto, canonname, sa = res
896   # create a raw socket and bind it to the public interface
897   s = socket.socket(socket.AF_INET, socket.SOCK_RAW, socket.IPPROTO_IP)
898   s.bind((HOST, 0))
socket.rst https://bitbucket.org/l0nwlf/policy-and-header-refactor | Unknown | 895 lines
631
632   Send data to the socket.  The socket must be connected to a remote socket.  The
633   optional *flags* argument has the same meaning as for :meth:`recv` above.
640
641   Send data to the socket.  The socket must be connected to a remote socket.  The
642   optional *flags* argument has the same meaning as for :meth:`recv` above.
772   PORT = 50007              # Arbitrary non-privileged port
773   s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
774   s.bind((HOST, PORT))
790   PORT = 50007              # The same port as used by the server
791   s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
792   s.connect((HOST, PORT))
880   # create a raw socket and bind it to the public interface
881   s = socket.socket(socket.AF_INET, socket.SOCK_RAW, socket.IPPROTO_IP)
882   s.bind((HOST, 0))
socket.rst https://bitbucket.org/habnabit/mont-e | Unknown | 921 lines
663
664   Send data to the socket.  The socket must be connected to a remote socket.  The
665   optional *flags* argument has the same meaning as for :meth:`recv` above.
673
674   Send data to the socket.  The socket should not be connected to a remote socket,
675   since the destination socket is specified by *address*.  The optional *flags*
798   PORT = 50007              # Arbitrary non-privileged port
799   s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
800   s.bind((HOST, PORT))
816   PORT = 50007              # The same port as used by the server
817   s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
818   s.connect((HOST, PORT))
906   # create a raw socket and bind it to the public interface
907   s = socket.socket(socket.AF_INET, socket.SOCK_RAW, socket.IPPROTO_IP)
908   s.bind((HOST, 0))
socket.rst https://bitbucket.org/pombredanne/cpython | Unknown | 1,409 lines
1209   PORT = 50007              # Arbitrary non-privileged port
1210   s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
1211   s.bind((HOST, PORT))
1227   PORT = 50007              # The same port as used by the server
1228   s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
1229   s.connect((HOST, PORT))
1317   # create a raw socket and bind it to the public interface
1318   s = socket.socket(socket.AF_INET, socket.SOCK_RAW, socket.IPPROTO_IP)
1319   s.bind((HOST, 0))
1355   # create a raw socket and bind it to the 'vcan0' interface
1356   s = socket.socket(socket.AF_CAN, socket.SOCK_RAW, socket.CAN_RAW)
1357   s.bind(('vcan0',))
1384
1385   s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
1386   s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
socket.io.js git://github.com/LearnBoost/socket.io.git | JavaScript | 2,459 lines
220        request('http://localhost:54020')
221        .get('/socket.io/socket.io.js')
222        .expect(200, done);
2177  describe('middleware', function(done){
2178    var Socket = require('../lib/socket');
2179
2184      sio.use(function(socket, next){
2185        expect(socket).to.be.a(Socket);
2186        run++;
2189      sio.use(function(socket, next){
2190        expect(socket).to.be.a(Socket);
2191        run++;
2367  describe('socket middleware', function(done){
2368    var Socket = require('../lib/socket');
2369
srfi-basic-socket-interface.texi git://github.com/marcomaggi/vicare.git | Unknown | 742 lines
106message-type                    shutdown-method
107socket-merge-flags              socket-purge-flags
108@end example
695
696(srfi.socket-send client-socket (string->utf8 "hello\r\n"))
697(display (utf8->string
697(display (utf8->string
698          (srfi.socket-recv client-socket
699                            (string-length "hello\r\n"))))
700(flush-output-port (current-output-port))
701(srfi.socket-shutdown client-socket
702                      (srfi.shutdown-method read write))
702                      (srfi.shutdown-method read write))
703(srfi.socket-close client-socket)
704@end example
socket.idl.json git://github.com/facebook/hiphop-php.git | Unknown | 748 lines
294            "name": "socket_listen",
295            "desc": "After the socket socket has been created using socket_create() and bound to a name with socket_bind(), it may be told to listen for incoming connections on socket.\n\nsocket_listen() is applicable only to sockets of type SOCK_STREAM or SOCK_SEQPACKET.",
296            "flags": [
317            "name": "socket_select",
318            "desc": "socket_select() accepts arrays of sockets and waits for them to change status. Those coming with BSD sockets background will recognize that those socket resource arrays are in fact the so-called file descriptor sets. Three independent arrays of socket resources are watched.\nWarning\n\nOn exit, the arrays are modified to indicate which socket resource actually changed status.\n\nYou do not need to pass every array to socket_select(). You can leave it out and use an empty array or NULL instead. Also do not forget that those arrays are passed by reference and will be modified after socket_select() returns.\n\nDue a limitation in the current Zend Engine it is not possible to pass a constant modifier like NULL directly as a parameter to a function which expects this parameter to be passed by reference. Instead use a temporary variable or an expression with the leftmost member being a temporary variable: Example #1 Using NULL with socket_select()",
319            "flags": [
388            "name": "socket_accept",
389            "desc": "After the socket socket has been created using socket_create(), bound to a name with socket_bind(), and told to listen for connections with socket_listen(), this function will accept incoming connections on that socket. Once a successful connection is made, a new socket resource is returned, which may be used for communication. If there are multiple connections queued on the socket, the first will be used. If there are no pending connections, socket_accept() will block until a connection becomes present. If socket has been made non-blocking using socket_set_blocking() or socket_set_nonblock(), FALSE will be returned.\n\nThe socket resource returned by socket_accept() may not be used to accept new connections. The original listening socket socket, however, remains open and may be reused.",
390            "flags": [
568            "name": "socket_recvfrom",
569            "desc": "The socket_recvfrom() function receives len bytes of data in buf from name on port port (if the socket is not of type AF_UNIX) using socket. socket_recvfrom() can be used to gather data from both connected and unconnected sockets. Additionally, one or more flags can be specified to modify the behaviour of the function.\n\nThe name and port must be passed by reference. If the socket is not connection-oriented, name will be set to the internet protocol address of the remote host or the path to the UNIX socket. If the socket is connection-oriented, name is NULL. Additionally, the port will contain the port of the remote host in the case of an unconnected AF_INET or AF_INET6 socket.",
570            "flags": [
671            "name": "socket_last_error",
672            "desc": "If a socket resource is passed to this function, the last error which occurred on this particular socket is returned. If the socket resource is omitted, the error code of the last failed socket function is returned. The latter is particularly helpful for functions like socket_create() which don't return a socket on failure and socket_select() which can fail for reasons not directly tied to a particular socket. The error code is suitable to be fed to socket_strerror() which returns a string describing the given error code.",
673            "flags": [
socket.rst https://bitbucket.org/bluehorn/sampling_prof | Unknown | 1,731 lines
1542   PORT = 50007              # The same port as used by the server
1543   with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
1544       s.connect((HOST, PORT))
1631   # create a raw socket and bind it to the public interface
1632   s = socket.socket(socket.AF_INET, socket.SOCK_RAW, socket.IPPROTO_IP)
1633   s.bind((HOST, 0))
1650
1651    socket.socket(socket.AF_CAN, socket.SOCK_DGRAM, socket.CAN_BCM)
1652
1678   # create a raw socket and bind it to the 'vcan0' interface
1679   s = socket.socket(socket.AF_CAN, socket.SOCK_RAW, socket.CAN_RAW)
1680   s.bind(('vcan0',))
1707
1708   s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
1709   s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
socket.rst https://bitbucket.org/christandiono/cpython | Unknown | 1,431 lines
1222   PORT = 50007              # Arbitrary non-privileged port
1223   s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
1224   s.bind((HOST, PORT))
1240   PORT = 50007              # The same port as used by the server
1241   s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
1242   s.connect((HOST, PORT))
1330   # create a raw socket and bind it to the public interface
1331   s = socket.socket(socket.AF_INET, socket.SOCK_RAW, socket.IPPROTO_IP)
1332   s.bind((HOST, 0))
1349
1350    socket.socket(socket.AF_CAN, socket.SOCK_DGRAM, socket.CAN_BCM)
1351
1377   # create a raw socket and bind it to the 'vcan0' interface
1378   s = socket.socket(socket.AF_CAN, socket.SOCK_RAW, socket.CAN_RAW)
1379   s.bind(('vcan0',))
socket.rst https://bitbucket.org/python_mirrors/sandbox-jcea-cpython-2011 | Unknown | 1,408 lines
1208   PORT = 50007              # Arbitrary non-privileged port
1209   s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
1210   s.bind((HOST, PORT))
1226   PORT = 50007              # The same port as used by the server
1227   s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
1228   s.connect((HOST, PORT))
1316   # create a raw socket and bind it to the public interface
1317   s = socket.socket(socket.AF_INET, socket.SOCK_RAW, socket.IPPROTO_IP)
1318   s.bind((HOST, 0))
1354   # create a raw socket and bind it to the 'vcan0' interface
1355   s = socket.socket(socket.AF_CAN, socket.SOCK_RAW, socket.CAN_RAW)
1356   s.bind(('vcan0',))
1383
1384   s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
1385   s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
wi-socket.c https://bitbucket.org/balrog/zanka-full | C | 1,491 lines
424
425wi_socket_t * wi_socket_init_with_address(wi_socket_t *_socket, wi_address_t *address, wi_socket_type_t type) {
426	_socket->address	= wi_copy(address);
430
431	_socket->sd			= socket(wi_address_family(_socket->address), _socket->type, 0);
432	
451
452wi_socket_t * wi_socket_init_with_descriptor(wi_socket_t *socket, int sd) {
453	socket->sd			= sd;
1079
1080wi_socket_t * wi_socket_accept(wi_socket_t *accept_socket, wi_socket_context_t *context, wi_time_interval_t timeout, wi_address_t **address) {
1081	wi_socket_t					*socket;
1265
1266int32_t wi_socket_recvfrom(wi_socket_t *socket, wi_socket_context_t *context, char *buffer, size_t length, wi_address_t **address) {
1267	struct sockaddr_storage		ss;
wi-socket.c https://bitbucket.org/balrog/zanka-full | C | 1,682 lines
385
386wi_socket_t * wi_socket_init_with_address(wi_socket_t *_socket, wi_address_t *address, wi_socket_type_t type) {
387	_socket->address	= wi_copy(address);
391
392	_socket->sd			= socket(wi_address_family(_socket->address), _socket->type, 0);
393	
832	
833	WI_ASSERT(socket->type == WI_SOCKET_TCP, "%@ is not a TCP socket", socket);
834	
1067
1068wi_boolean_t wi_socket_connect_tls(wi_socket_t *socket, wi_socket_tls_t *tls, wi_time_interval_t timeout) {
1069	wi_socket_state_t	state;
1169
1170wi_socket_t * wi_socket_accept(wi_socket_t *accept_socket, wi_time_interval_t timeout, wi_address_t **address) {
1171	wi_socket_t					*socket;
wi-socket.c https://bitbucket.org/balrog/zanka-full | C | 1,520 lines
429
430wi_socket_t * wi_socket_init_with_address(wi_socket_t *_socket, wi_address_t *address, wi_socket_type_t type) {
431	_socket->address	= wi_copy(address);
456
457wi_socket_t * wi_socket_init_with_descriptor(wi_socket_t *socket, int sd) {
458	socket->sd			= sd;
980
981wi_boolean_t wi_socket_connect(wi_socket_t *socket, wi_socket_context_t *context, wi_time_interval_t timeout) {
982	struct sockaddr		*sa;
1108
1109wi_socket_t * wi_socket_accept(wi_socket_t *accept_socket, wi_socket_context_t *context, wi_time_interval_t timeout, wi_address_t **address) {
1110	wi_socket_t					*socket;
1218
1219wi_integer_t wi_socket_sendto(wi_socket_t *socket, wi_socket_context_t *context, wi_string_t *fmt, ...) {
1220	wi_string_t		*string;
wi-socket.c https://bitbucket.org/balrog/zanka-full | C | 1,694 lines
385
386wi_socket_t * wi_socket_init_with_address(wi_socket_t *_socket, wi_address_t *address, wi_socket_type_t type) {
387	_socket->address	= wi_copy(address);
391
392	_socket->sd			= socket(wi_address_family(_socket->address), _socket->type, 0);
393	
832	
833	WI_ASSERT(socket->type == WI_SOCKET_TCP, "%@ is not a TCP socket", socket);
834	
1067
1068wi_boolean_t wi_socket_connect_tls(wi_socket_t *socket, wi_socket_tls_t *tls, wi_time_interval_t timeout) {
1069	wi_socket_state_t	state;
1169
1170wi_socket_t * wi_socket_accept(wi_socket_t *accept_socket, wi_time_interval_t timeout, wi_address_t **address) {
1171	wi_socket_t					*socket;
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21