PageRenderTime 1869ms queryFilters 2ms Sphinxql 67ms app.CodeModel.GetByIds 1409ms findMatchingLines 132ms GetByIds 1541ms meta 0ms repositoryFilters 7ms languageFilters 1ms sourceFilters 3ms

624,987 results for 'socket repo:F34140r/rockin-refbox' (1869 ms)

Source

Language

Repository

socket.c https://bitbucket.org/diagiman/vbox-trunk | C | 1,698 lines
42 */
43struct socket * soCloneUDPSocketWithForegnAddr(PNATState pData, bool fBindSocket, struct socket *pSo, uint32_t u32ForeignAddr)
44{
44{
45    struct socket *pNewSocket = NULL;
46    LogFlowFunc(("Enter: fBindSocket:%RTbool, so:%R[natsock], u32ForeignAddr:%RTnaipv4\n", fBindSocket, pSo, u32ForeignAddr));
77
78struct socket *soLookUpClonedUDPSocket(PNATState pData, const struct socket *pcSo, uint32_t u32ForeignAddress)
79{
108
109        struct socket *pNewSocket = soCloneUDPSocketWithForegnAddr(pData, pSo, pData->pInSockAddrHomeAddress[idxAddr].sin_addr);
110        AssertReturn((pNewSocket, false));
164
165    so = (struct socket *)RTMemAllocZ(sizeof(struct socket));
166    if (so)
socket.h https://bitbucket.org/diagiman/vbox-trunk | C++ Header | 400 lines
102 */
103RTDECL(RTHCUINTPTR) RTSocketToNative(RTSOCKET hSocket);
104
310 */
311RTDECL(int) RTSocketSgWriteLV(RTSOCKET hSocket, size_t cSegs, va_list va);
312
324 */
325RTDECL(int) RTSocketReadNB(RTSOCKET hSocket, void *pvBuffer, size_t cbBuffer, size_t *pcbRead);
326
338 */
339RTDECL(int) RTSocketWriteNB(RTSOCKET hSocket, const void *pvBuffer, size_t cbBuffer, size_t *pcbWritten);
340
372 */
373RTR3DECL(int) RTSocketSgWriteLNB(RTSOCKET hSocket, size_t cSegs, size_t *pcbWritten, ...);
374
socket-io-client.js https://bitbucket.org/andrijac/remote-script-call | JavaScript | 3,708 lines
1455   *
1456   * @param {Socket} socket The socket instance that needs a transport
1457   * @param {Function} fn The callback
2289    if (!Socket) {
2290      Socket = window.MozWebSocket || window.WebSocket;
2291    }
2506   *
2507   * @param {Socket} socket The socket instance that needs a transport
2508   * @param {Function} fn The callback
2825    if (!window.WEB_SOCKET_SWF_LOCATION) {
2826      console.error("[WebSocket] set WEB_SOCKET_SWF_LOCATION to location of WebSocketMain.swf");
2827      return;
3464   *
3465   * @param {Socket} socket The socket instance that needs a transport
3466   * @param {Function} fn The callback
socket.c https://bitbucket.org/kgp700/siyahkernel | C | 3,132 lines
255		return NULL;
256	ei->socket.wq = kmalloc(sizeof(struct socket_wq), GFP_KERNEL);
257	if (!ei->socket.wq) {
275{
276	struct socket_wq *wq = container_of(head, struct socket_wq, rcu);
277
291{
292	struct socket_alloc *ei = (struct socket_alloc *)foo;
293
1192		if (net_ratelimit())
1193			printk(KERN_WARNING "socket: no more sockets\n");
1194		return -ENFILE;	/* Not exactly a match, but its the
3005
3006int kernel_accept(struct socket *sock, struct socket **newsock, int flags)
3007{
socket.h https://bitbucket.org/nbaldo/prova | C++ Header | 683 lines
41 * \ingroup node
42 * \defgroup socket Socket
43 */
45/**
46 * \brief A low-level Socket API based loosely on the BSD Socket API.
47 * \ingroup socket
96   */
97  static Ptr<Socket> CreateSocket (Ptr<Node> node, TypeId tid);
98  /**
577   * For IP_PKTINFO/IP6_PKTINFO. This method is only usable for 
578   * Raw socket and Datagram Socket. Not supported for Stream socket.
579   *
590  bool NotifyConnectionRequest (const Address &from);
591  void NotifyNewConnectionCreated (Ptr<Socket> socket, const Address &from);
592  void NotifyDataSent (uint32_t size);
Socket.java http://svn.apache.org/repos/asf/tomcat/ | Java | 530 lines
124     *      controls which calls are still valid on the socket.
125     * @param thesocket The socket to close
126     * @param how How to shutdown the socket.  One of:
492     * Create a child pool from associated socket pool.
493     * @param thesocket The socket to use
494     */
503     * SOCKET_GET_POOL  - The socket pool
504     * SOCKET_GET_IMPL  - The socket implementation object
505     * SOCKET_GET_APRS  - APR socket
505     * SOCKET_GET_APRS  - APR socket
506     * SOCKET_GET_TYPE  - Socket type
507     * </PRE>
515     * consecutive sendbb calls.
516     * @param thesocket The socket to use
517     * @param buf The ByteBuffer
Socket.sig https://github.com/bluegnu/mosml.git | Unknown | 293 lines
1(* Socket -- SML Basis Library -- requires Dynlib *)
2
7type dgram                              (* A datagram socket             *)
8type 'a stream                          (* A stream socket               *)
9type passive                            (* A passive stream              *)
11
12(* Socket protocol families *)
13type pf_file                            (* The Unix file protocol family *)
19
20(* Socket constructors *)
21val fileStream : unit -> (pf_file, 'a stream) sock
92(* 
93   Structure Socket defines functions for creating and using sockets,
94   a means for communication between SML processes on the same machine
148   only address from which datagrams will be accepted.  If sock is a
149   stream socket, then addr specifies another socket to which to
150   connect.
Socket.html https://github.com/bluegnu/mosml.git | HTML | 306 lines
1<HTML><HEAD><TITLE>Structure Socket</TITLE></HEAD>
2<BODY BGCOLOR="#fbf2e7">
13<A NAME="line4"></A>
14<A NAME="line5"></A>(* Socket types *)
15<A NAME="line6"></A>type dgram                              (* A datagram socket             *)
15<A NAME="line6"></A>type dgram                              (* A datagram socket             *)
16<A NAME="line7"></A>type 'a stream                          (* A stream socket               *)
17<A NAME="line8"></A>type passive                            (* A passive stream              *)
19<A NAME="line10"></A>
20<A NAME="line11"></A>(* Socket protocol families *)
21<A NAME="line12"></A>type pf_file                            (* The Unix file protocol family *)
100<A NAME="line91"></A>(* 
101<A NAME="line92"></A>   Structure Socket defines functions for creating and using sockets,
102<A NAME="line93"></A>   a means for communication between SML processes on the same machine
156   only address from which datagrams will be accepted.  If sock is a
157   stream socket, then addr specifies another socket to which to
158   connect.
socket.d https://bitbucket.org/alexrp/gdc | D | 2,034 lines
1185        {
1186            setOption(SocketOptionLevel.SOCKET, cast(SocketOption)SO_NOSIGPIPE, true);
1187        }
1673    {
1674        //return getOption(cast(SocketOptionLevel)SocketOptionLevel.SOCKET, SocketOption.LINGER, (&result)[0 .. 1]);
1675        return getOption(level, option, (&result)[0 .. 1]);
1720    {
1721        //setOption(cast(SocketOptionLevel)SocketOptionLevel.SOCKET, SocketOption.LINGER, (&value)[0 .. 1]);
1722        setOption(level, option, (&value)[0 .. 1]);
1794    /**
1795     * Wait for a socket to change status. A wait timeout timeval or int microseconds may be specified; if a timeout is not specified or the timeval is null, the maximum timeout is used. The timeval timeout has an unspecified value when select returns. Returns the number of sockets with status changes, 0 on timeout, or -1 on interruption. If the return value is greater than 0, the SocketSets are updated to only contain the sockets having status changes. For a connecting socket, a write status change means the connection is established and it's able to send. For a listening socket, a read status change means there is an incoming connection request and it's able to accept.
1796     */
1902    //maximum timeout
1903    static int select(SocketSet checkRead, SocketSet checkWrite, SocketSet checkError)
1904    {
socket.py https://bitbucket.org/olemis/brython | Python | 438 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
221
222if hasattr(_socket.socket, "share"):
223    def fromshare(info):
233    def socketpair(family=None, type=SOCK_STREAM, proto=0):
234        """socketpair([family[, type[, proto]]]) -> (socket object, socket object)
235
Socket.html https://github.com/JerryWho/railsdoccompilation.git | HTML | 5,176 lines
55    <dd class="r1">
56      <span class="inheritName"><span class='object_link'><a href="BasicSocket.html" title="BasicSocket (class)">BasicSocket</a></span></span>
57      
95    
96      <strong class="classes">Classes:</strong> <span class='object_link'><a href="Socket/AncillaryData.html" title="Socket::AncillaryData (class)">AncillaryData</a></span>, <span class='object_link'><a href="Socket/Option.html" title="Socket::Option (class)">Option</a></span>
97    
784  <h3 class="inherited">Methods inherited from <span class='object_link'><a href="BasicSocket.html" title="BasicSocket (class)">BasicSocket</a></span></h3>
785  <p class="inherited"><span class='object_link'><a href="BasicSocket.html#close_read-instance_method" title="BasicSocket#close_read (method)">#close_read</a></span>, <span class='object_link'><a href="BasicSocket.html#close_write-instance_method" title="BasicSocket#close_write (method)">#close_write</a></span>, <span class='object_link'><a href="BasicSocket.html#do_not_reverse_lookup-instance_method" title="BasicSocket#do_not_reverse_lookup (method)">#do_not_reverse_lookup</a></span>, <span class='object_link'><a href="BasicSocket.html#do_not_reverse_lookup-class_method" title="BasicSocket.do_not_reverse_lookup (method)">do_not_reverse_lookup</a></span>, <span class='object_link'><a href="BasicSocket.html#do_not_reverse_lookup%3D-class_method" title="BasicSocket.do_not_reverse_lookup= (method)">do_not_reverse_lookup=</a></span>, <span class='object_link'><a href="BasicSocket.html#do_not_reverse_lookup%3D-instance_method" title="BasicSocket#do_not_reverse_lookup= (method)">#do_not_reverse_lookup=</a></span>, <span class='object_link'><a href="BasicSocket.html#for_fd-class_method" title="BasicSocket.for_fd (method)">for_fd</a></span>, <span class='object_link'><a href="BasicSocket.html#getpeereid-instance_method" title="BasicSocket#getpeereid (method)">#getpeereid</a></span>, <span class='object_link'><a href="BasicSocket.html#getpeername-instance_method" title="BasicSocket#getpeername (method)">#getpeername</a></span>, <span class='object_link'><a href="BasicSocket.html#getsockname-instance_method" title="BasicSocket#getsockname (method)">#getsockname</a></span>, <span class='object_link'><a href="BasicSocket.html#getsockopt-instance_method" title="BasicSocket#getsockopt (method)">#getsockopt</a></span>, <span class='object_link'><a href="BasicSocket.html#local_address-instance_method" title="BasicSocket#local_address (method)">#local_address</a></span>, <span class='object_link'><a href="BasicSocket.html#recv-instance_method" title="BasicSocket#recv (method)">#recv</a></span>, <span class='object_link'><a href="BasicSocket.html#recv_nonblock-instance_method" title="BasicSocket#recv_nonblock (method)">#recv_nonblock</a></span>, <span class='object_link'><a href="BasicSocket.html#recvmsg-instance_method" title="BasicSocket#recvmsg (method)">#recvmsg</a></span>, <span class='object_link'><a href="BasicSocket.html#recvmsg_nonblock-instance_method" title="BasicSocket#recvmsg_nonblock (method)">#recvmsg_nonblock</a></span>, <span class='object_link'><a href="BasicSocket.html#remote_address-instance_method" title="BasicSocket#remote_address (method)">#remote_address</a></span>, <span class='object_link'><a href="BasicSocket.html#send-instance_method" title="BasicSocket#send (method)">#send</a></span>, <span class='object_link'><a href="BasicSocket.html#sendmsg-instance_method" title="BasicSocket#sendmsg (method)">#sendmsg</a></span>, <span class='object_link'><a href="BasicSocket.html#sendmsg_nonblock-instance_method" title="BasicSocket#sendmsg_nonblock (method)">#sendmsg_nonblock</a></span>, <span class='object_link'><a href="BasicSocket.html#setsockopt-instance_method" title="BasicSocket#setsockopt (method)">#setsockopt</a></span>, <span class='object_link'><a href="BasicSocket.html#shutdown-instance_method" title="BasicSocket#shutdown (method)">#shutdown</a></span></p>
786
2311 *   Socket.pair(domain, type, protocol)       =&gt; [socket1, socket2]
2312 *   Socket.socketpair(domain, type, protocol) =&gt; [socket1, socket2]
2313 *
2619 *   Socket.pair(domain, type, protocol)       =&gt; [socket1, socket2]
2620 *   Socket.socketpair(domain, type, protocol) =&gt; [socket1, socket2]
2621 *
socket.io.js https://github.com/christianhager/redisio.git | JavaScript | 2,156 lines
15		this.path = /\/$/.test(path) ? path : path + '/';
16		WEB_SOCKET_SWF_LOCATION = path + 'lib/vendor/web-socket-js/WebSocketMain.swf';
17	}
23  // WEB_SOCKET_SWF_LOCATION = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//cdn.socket.io/' + this.io.version + '/WebSocketMain.swf';
24  WEB_SOCKET_SWF_LOCATION = '/Socket.IO/lib/vendor/web-socket-js/WebSocketMain.swf';
25}
616		// we make sure WebSocket is not confounded with a previously loaded flash WebSocket
617		return 'WebSocket' in window && WebSocket.prototype && ( WebSocket.prototype.send && !!WebSocket.prototype.send.toString().match(/native/i)) && typeof WebSocket !== "undefined";
618	};
1151	
1152	Socket.prototype.addListener = Socket.prototype.addEvent = Socket.prototype.addEventListener = Socket.prototype.on;
1153	
2072    if (!window.WEB_SOCKET_SWF_LOCATION) {
2073      console.error("[WebSocket] set WEB_SOCKET_SWF_LOCATION to location of WebSocketMain.swf");
2074      return;
socket.rb https://github.com/dream-hunter/ruby.git | Ruby | 762 lines
344  #   # tcp_server_sockets returns two sockets.
345  #   sockets = Socket.tcp_server_sockets(1296)
346  #   p sockets #=> [#<Socket:fd 3>, #<Socket:fd 4>]
353  #   # IPv6 and IPv4 socket has same port number, 53114, even if it is choosen dynamically.
354  #   sockets = Socket.tcp_server_sockets(0)
355  #   sockets.each {|s| p s.local_address }
360  #   Socket.tcp_server_sockets(0) {|sockets|
361  #     p sockets #=> [#<Socket:fd 3>, #<Socket:fd 4>]
362  #   }
486  #   # UDP/IP echo server
487  #   Socket.udp_server_sockets(0) {|sockets|
488  #     p sockets.first.local_address.ip_port     #=> 32963
699  #
700  #   socket = Socket.unix_server_socket("/tmp/s")
701  #   p socket                  #=> #<Socket:fd 3>
socket.hpp https://github.com/datasift/zmqpp.git | C++ Header | 518 lines
32/*!
33 * The socket class represents the zmq sockets.
34 *
70	 * \param context the zmq context under which the socket will live
71	 * \param type a valid ::socket_type for the socket
72	 * \param label a human-readable label describing the socket
468	 */
469	socket(socket&& source) noexcept;
470
481	 */
482	socket& operator=(socket&& source) noexcept;
483
509	socket(socket const&) noexcept ZMQPP_EXPLICITLY_DELETED;
510	socket& operator=(socket const&) noexcept ZMQPP_EXPLICITLY_DELETED;
511
socket.io.js https://github.com/joshfire-platform-templates/tedx-deprecated.git | JavaScript | 3,524 lines
97
98    socket = socket || this.sockets[uuri];
99
1417
1418  exports.Socket = Socket;
1419
2677    if (!window.WEB_SOCKET_SWF_LOCATION) {
2678      console.error("[WebSocket] set WEB_SOCKET_SWF_LOCATION to location of WebSocketMain.swf");
2679      return;
2726    setTimeout(function() {
2727      WebSocket.__flash = document.getElementById("webSocketFlash");
2728      WebSocket.__flash.setCallerUrl(location.href);
2728      WebSocket.__flash.setCallerUrl(location.href);
2729      WebSocket.__flash.setDebug(!!window.WEB_SOCKET_DEBUG);
2730      for (var i = 0; i < WebSocket.__tasks.length; ++i) {
socket.js https://github.com/akzhan/common-node.git | JavaScript | 244 lines
2 * @fileoverview Socket class as defined in the [CommonJS
3 * Sockets/A](http://wiki.commonjs.org/wiki/Sockets/A) proposal.
4 */
8
9exports.Socket = Socket;
10
17/**
18 * The Socket class is used to create a blocking socket.
19 * 
95/**
96 * Accept a connection on a socket. Returns a new (connected) Socket.
97 */
238/**
239 * Get socket option value, option should be socket option name.
240 */
tcp-socket-base.cc https://bitbucket.org/cttc-lena/ns-3-lena-dev | C++ | 2,448 lines
134
135TcpSocketBase::TcpSocketBase (const TcpSocketBase& sock)
136  : TcpSocket (sock),
234/* Inherit from Socket class: Returns error code */
235enum Socket::SocketErrno
236TcpSocketBase::GetErrno (void) const
267
268  if (std::find(m_tcp->m_sockets.begin(), m_tcp->m_sockets.end(), this) == m_tcp->m_sockets.end())
269    {
285
286  if (std::find(m_tcp->m_sockets.begin(), m_tcp->m_sockets.end(), this) == m_tcp->m_sockets.end())
287    {
357
358  if (std::find(m_tcp->m_sockets.begin(), m_tcp->m_sockets.end(), this) == m_tcp->m_sockets.end())
359    {
socket.c https://github.com/telestrial/mud.git | C | 1,432 lines
243 */
244void close_socket(SOCKET_DATA *dsock, bool reconnect)
245{
1117
1118void socketPushInputHandler  ( SOCKET_DATA *socket, 
1119			       void handler(SOCKET_DATA *socket, char *input),
1154
1155void socketPopInputHandler   ( SOCKET_DATA *socket) {
1156  IH_PAIR *pair = listPop(socket->input_handlers);
1160
1161void socketReplaceInputHandler( SOCKET_DATA *socket,
1162				void handler(SOCKET_DATA *socket, char *input),
1221
1222const char *socketGetState(SOCKET_DATA *sock) {
1223  IH_PAIR *pair = listGet(sock->input_handlers, 0);
socket.io.js https://github.com/TakumiBaba/callForwardingExtension.git | JavaScript | 2,599 lines
96
97    socket = socket || io.sockets[uuri];
98
1455   *
1456   * @param {Socket} socket The socket instance that needs a transport
1457   * @param {Function} fn The callback
2010  function SocketNamespace (socket, name) {
2011    this.socket = socket;
2012    this.name = name || '';
2040  SocketNamespace.prototype.of = function () {
2041    return this.socket.of.apply(this.socket, arguments);
2042  };
2572   *
2573   * @param {Socket} socket The socket instance that needs a transport
2574   * @param {Function} fn The callback
socket.c https://github.com/dopry/glusterfs.git | C | 2,809 lines
25
26#include "socket.h"
27#include "name.h"
62
63#define __socket_proto_update_pending(priv)                             \
64        do {                                                            \
78
79#define __socket_proto_update_priv_after_read(priv, ret, bytes_read)    \
80        {                                                               \
85                        if (priv->incoming.frag.remaining_size != 0 && ret == 0) {  \
86                                __socket_proto_reset_pending (priv);    \
87                        }                                               \
1452inline
1453void __socket_reset_priv (socket_private_t *priv)
1454{
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21