626,242 results for 'socket repo:mstreet_fceia/nachos' (36 ms)
socket.c https://bitbucket.org/olivier_pitton/linux-3.8.git | C | 1,884 lines
1/* 2 * net/tipc/socket.c: TIPC socket API 3 * 1797 .connect = connect, 1798 .socketpair = sock_no_socketpair, 1799 .accept = accept, 1818 .connect = connect, 1819 .socketpair = sock_no_socketpair, 1820 .accept = accept, 1846/** 1847 * tipc_socket_init - initialize TIPC socket interface 1848 * 1873/** 1874 * tipc_socket_stop - stop TIPC socket interface 1875 */socket.c https://bitbucket.org/digetx/picasso-kernel.git | C | 3,505 lines
1/* 2 * NET An implementation of the SOCKET network access protocol. 3 * 29 * allowed to allocate. 30 * Linus : Argh. removed all the socket allocation 31 * altogether: it's in the inode now. 280{ 281 struct socket_alloc *ei = (struct socket_alloc *)foo; 282 1300 if (!sock) { 1301 net_warn_ratelimited("socket: no more sockets\n"); 1302 return -ENFILE; /* Not exactly a match, but its the 3389 3390int kernel_accept(struct socket *sock, struct socket **newsock, int flags) 3391{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 */SocketTest.cs https://bitbucket.org/danipen/mono.git | C# | 4,309 lines
3634 try { 3635 s.SetSocketOption (SocketOptionLevel.Socket, SocketOptionName.DontLinger, 3636 new byte [] { 0x00 }); 3650 s.SetSocketOption (SocketOptionLevel.Socket, SocketOptionName.DontLinger, 0); 3651 s.SetSocketOption (SocketOptionLevel.Socket, SocketOptionName.DontLinger, 5); 3652 } 3660 s.SetSocketOption (SocketOptionLevel.Socket, SocketOptionName.Linger, 0); 3661 s.SetSocketOption (SocketOptionLevel.Socket, SocketOptionName.Linger, 5); 3662 } 4133 try { 4134 s.SetSocketOption (SocketOptionLevel.Socket, SocketOptionName.Linger, 4135 new LingerOption (false, 0)); 4286 4287 Socket listenSocket = new Socket (AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); 4288tst_qjsonrpcserver.cpp https://bitbucket.org/mgodshall/qjsonrpc.git | C++ | 1,012 lines
347 QVERIFY(socket.waitForConnected()); 348 QJsonRpcSocket serviceSocket(&socket, this); 349 392 QVERIFY(socket.waitForConnected()); 393 QJsonRpcSocket serviceSocket(&socket, this); 394 QSignalSpy spyMessageReceived(&serviceSocket, 754 QVERIFY(socket.waitForConnected()); 755 QJsonRpcSocket serviceSocket(&socket, this); 756 982 QVERIFY(socket.waitForConnected()); 983 QJsonRpcSocket serviceSocket(&socket, this); 984 QJsonRpcMessage request = QJsonRpcMessage::createRequest("service.numberParameters", QVariantList() << 10 << 3.14159); 999 QVERIFY(socket.waitForConnected()); 1000 QJsonRpcSocket serviceSocket(&socket, this); 1001 QSignalSpy spyMessageReceived(&serviceSocket,socket.c https://bitbucket.org/evzijst/gittest.git | C | 2,088 lines
1/* 2 * NET An implementation of the SOCKET network access protocol. 3 * 29 * allowed to allocate. 30 * Linus : Argh. removed all the socket allocation 31 * altogether: it's in the inode now. 302{ 303 struct socket_alloc *ei = (struct socket_alloc *) foo; 304 941{ 942 struct socket *sock = SOCKET_I(file->f_dentry->d_inode); 943 1125 if (!(sock = sock_alloc())) { 1126 printk(KERN_WARNING "socket: no more sockets\n"); 1127 err = -ENFILE; /* Not exactly a match, but its theyenta_socket.c https://bitbucket.org/evzijst/gittest.git | C | 1,160 lines
146{ 147 struct yenta_socket *socket = container_of(sock, struct yenta_socket, socket); 148 unsigned int val; 199{ 200 struct yenta_socket *socket = container_of(sock, struct yenta_socket, socket); 201 u8 reg; 257{ 258 struct yenta_socket *socket = container_of(sock, struct yenta_socket, socket); 259 u16 bridge; 351{ 352 struct yenta_socket *socket = container_of(sock, struct yenta_socket, socket); 353 struct pci_bus_region region; 461 462 yenta_set_socket(&socket->socket, &dead_socket); 463 for (i = 0; i < 2; i++) {vrc4173_cardu.c https://bitbucket.org/evzijst/gittest.git | C | 617 lines
48 49static vrc4173_socket_t cardu_sockets[CARDU_MAX_SOCKETS]; 50 86 87static inline void cardbus_socket_writel(vrc4173_socket_t *socket, u16 offset, uint32_t val) 88{ 166{ 167 vrc4173_socket_t *socket = &cardu_sockets[sock]; 168 uint32_t state; 269{ 270 vrc4173_socket_t *socket = &cardu_sockets[sock]; 271 uint8_t val; 291{ 292 vrc4173_socket_t *socket = &cardu_sockets[sock]; 293 uint8_t ioctl, window;ti113x.h https://bitbucket.org/evzijst/gittest.git | C Header | 662 lines
164#define ti_devctl(socket) ((socket)->private[2]) 165#define ti_diag(socket) ((socket)->private[3]) 166#define ti_mfunc(socket) ((socket)->private[4]) 166#define ti_mfunc(socket) ((socket)->private[4]) 167#define ene_test_c9(socket) ((socket)->private[5]) 168 202 u8 reg; 203 struct yenta_socket *socket = container_of(sock, struct yenta_socket, socket); 204 226{ 227 struct yenta_socket *socket = container_of(sock, struct yenta_socket, socket); 228 int shift = 0; 265 case PCI_DEVICE_ID_TI_4510: 266 socket->socket.zoom_video = ti_zoom_video; 267 break;pd6729.c https://bitbucket.org/evzijst/gittest.git | C | 871 lines
306 307static int pd6729_get_socket(struct pcmcia_socket *sock, socket_state_t *state) 308{ 706 707 socket = kmalloc(sizeof(struct pd6729_socket) * MAX_SOCKETS, 708 GFP_KERNEL); 711 712 memset(socket, 0, sizeof(struct pd6729_socket) * MAX_SOCKETS); 713 757 socket[i].socket.dev.dev = &dev->dev; 758 socket[i].socket.driver_data = &socket[i]; 759 } 816 817 pcmcia_unregister_socket(&socket[i].socket); 818 }cs.c https://bitbucket.org/evzijst/gittest.git | C | 1,917 lines
147 down_read(&pcmcia_socket_list_rwsem); 148 list_for_each_entry(socket, &pcmcia_socket_list, socket_list) { 149 if (socket->dev.dev != dev) 218 219 if (!socket || !socket->ops || !socket->dev.dev || !socket->resource_ops) 220 return -EINVAL; 251 } 252 list_add_tail(&socket->socket_list, &pcmcia_socket_list); 253 up_write(&pcmcia_socket_list_rwsem); 258 socket->dev.class = &pcmcia_socket_class; 259 snprintf(socket->dev.class_id, BUS_ID_SIZE, "pcmcia_socket%u", socket->sock); 260 302 303 cs_dbg(socket, 0, "pcmcia_unregister_socket(0x%p)\n", socket->ops); 304index-all.html https://bitbucket.org/blake_hashfund_com/google-appengine-sdk.git | HTML | 1,330 lines
220</dd> 221<dt><span class="strong"><a href="./com/google/appengine/api/socket/dev/DatagramSocketImplAccessor.html#DatagramSocketImplAccessor(java.net.DatagramSocketImpl)">DatagramSocketImplAccessor(DatagramSocketImpl)</a></span> - Constructor for class com.google.appengine.api.socket.dev.<a href="./com/google/appengine/api/socket/dev/DatagramSocketImplAccessor.html" title="class in com.google.appengine.api.socket.dev">DatagramSocketImplAccessor</a></dt> 222<dd> </dd> 389<dd> </dd> 390<dt><span class="strong"><a href="./com/google/appengine/api/socket/dev/LocalDatagramSocket.html#getSocketName(GetSocketNameRequest)">getSocketName(GetSocketNameRequest)</a></span> - Method in class com.google.appengine.api.socket.dev.<a href="./com/google/appengine/api/socket/dev/LocalDatagramSocket.html" title="class in com.google.appengine.api.socket.dev">LocalDatagramSocket</a></dt> 391<dd> </dd> 391<dd> </dd> 392<dt><span class="strong"><a href="./com/google/appengine/api/socket/dev/LocalSocketService.html#getSocketName(Status, GetSocketNameRequest)">getSocketName(Status, GetSocketNameRequest)</a></span> - Method in class com.google.appengine.api.socket.dev.<a href="./com/google/appengine/api/socket/dev/LocalSocketService.html" title="class in com.google.appengine.api.socket.dev">LocalSocketService</a></dt> 393<dd> </dd> 395<dd> </dd> 396<dt><span class="strong"><a href="./com/google/appengine/api/socket/dev/LocalSocketService.html#getSocketOptions(Status, GetSocketOptionsRequest)">getSocketOptions(Status, GetSocketOptionsRequest)</a></span> - Method in class com.google.appengine.api.socket.dev.<a href="./com/google/appengine/api/socket/dev/LocalSocketService.html" title="class in com.google.appengine.api.socket.dev">LocalSocketService</a></dt> 397<dd> </dd> 1031<dd> </dd> 1032<dt><span class="strong"><a href="./com/google/appengine/api/socket/dev/LocalSocketService.html#setSocketOptions(Status, SetSocketOptionsRequest)">setSocketOptions(Status, SetSocketOptionsRequest)</a></span> - Method in class com.google.appengine.api.socket.dev.<a href="./com/google/appengine/api/socket/dev/LocalSocketService.html" title="class in com.google.appengine.api.socket.dev">LocalSocketService</a></dt> 1033<dd> </dd>tclWinSock.c https://bitbucket.org/vrrm/brl-cad-copy-for-fast-history-browsing-in-git.git | C | 2,606 lines
71 Tcl_Channel channel; /* Channel associated with this socket. */ 72 SOCKET socket; /* Windows SOCKET handle. */ 73 int flags; /* Bit field comprised of the flags described 102 * events. */ 103 SOCKET socket; /* Socket descriptor that is ready. Used to 104 * find the SocketInfo structure for the file 136 HANDLE socketListLock; /* Win32 Event to lock the socketList */ 137 SocketInfo *socketList; /* Every open socket in this thread has an 138 * entry on this list. */ 153static void InitSockets(void); 154static SocketInfo * NewSocketInfo(SOCKET socket); 155static void SocketExitHandler(ClientData clientData); 800 801 if (closesocket(infoPtr->socket) == SOCKET_ERROR) { 802 TclWinConvertWSAError((DWORD) WSAGetLastError());socketmodule.c https://bitbucket.org/mirror/python-release25-maint | C | 5,097 lines
30- socket.socket([family[, type [, proto]]]) --> new socket object 31- socket.socketpair([family[, type [, proto]]]) --> (socket, socket) 32- socket.ntohs(16 bit value) --> new int object 38- socket.getnameinfo(sockaddr, flags) --> (host, port) 39- socket.AF_INET, socket.SOCK_STREAM, etc.: constants from <socket.h> 40- socket.has_ipv6: boolean value indicating if IPv6 is supported 3426PyDoc_STRVAR(socketpair_doc, 3427"socketpair([family[, type[, proto]]]) -> (socket object, socket object)\n\ 3428\n\ 4055#ifdef HAVE_SOCKETPAIR 4056 {"socketpair", socket_socketpair, 4057 METH_VARARGS, socketpair_doc}, 4244 PyModule_AddObject(m, "herror", socket_herror); 4245 socket_gaierror = PyErr_NewException("socket.gaierror", socket_error, 4246 NULL);libsocket.tex https://bitbucket.org/mirror/python-release25-maint | Unknown | 911 lines
768PORT = 50007 # Arbitrary non-privileged port 769s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 770s.bind((HOST, PORT)) 786PORT = 50007 # The same port as used by the server 787s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 788s.connect((HOST, PORT)) 812s = None 813for res in socket.getaddrinfo(HOST, PORT, socket.AF_UNSPEC, socket.SOCK_STREAM, 0, socket.AI_PASSIVE): 814 af, socktype, proto, canonname, sa = res 847s = None 848for res in socket.getaddrinfo(HOST, PORT, socket.AF_UNSPEC, socket.SOCK_STREAM): 849 af, socktype, proto, canonname, sa = res 877 878s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 879s.connect(('www.verisign.com', 443))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-ssl-streams.lisp https://bitbucket.org/mt/biobike | Lisp | 294 lines
15(defclass ssl-stream-mixin () 16 ((ssl-socket :accessor ssl-socket :initarg :ssl-socket))) 17 270(defmethod remote-host ((socket ssl::ssl-stream-mixin)) 271 (comm:get-socket-peer-address (ssl-internal::ssl-socket-fd (ssl::ssl-socket socket)))) 272 275 (multiple-value-bind (host port) 276 (comm:get-socket-peer-address (ssl-internal::ssl-socket-fd (ssl::ssl-socket socket))) 277 (declare (ignore host)) 282 (multiple-value-bind (host port) 283 (comm:get-socket-address (ssl-internal::ssl-socket-fd (ssl::ssl-socket socket))) 284 (declare (ignore port)) 289 (multiple-value-bind (host port) 290 (comm:get-socket-address (ssl-internal::ssl-socket-fd (ssl::ssl-socket socket))) 291 (declare (ignore host))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() callsock.h https://bitbucket.org/teluu/tabikphone | C++ Header | 1,204 lines
37 * The PJLIB socket abstraction layer is a thin and very portable abstraction 38 * for socket API. It provides API similar to BSD socket API. The abstraction 39 * is needed because BSD socket API is not always available on all platforms, 173 */ 174/** Socket level. @see pj_SOL_SOCKET() */ 175extern const pj_uint16_t PJ_SOL_SOCKET; 952 * addrlen bytes long. Traditionally, this is called assigning a name to 953 * a socket. When a socket is created with #pj_sock_socket(), it exists in a 954 * name space (address family) but has no name assigned. 1012/** 1013 * The file descriptor sockfd must refer to a socket. If the socket is of 1014 * type PJ_SOCK_DGRAM then the serv_addr address is the address to which 1062/** 1063 * Get socket option associated with a socket. Options may exist at multiple 1064 * protocol levels; they are always present at the uppermost socket level.