Searched defs:sock (Results 26 - 41 of 41) sorted by relevance

12

/vbox/src/libs/xpcom18a4/nsprpub/pr/tests/
H A Dnbconn.c156 PRFileDesc *sock; local
166 sock = PR_NewTCPSocket();
169 PR_SetSocketOption(sock, &optData);
170 rv = PR_Connect(sock, &addr, PR_INTERVAL_NO_TIMEOUT);
175 pd.fd = sock;
207 PR_Write(sock, "GET /\r\n\r\n", 9);
208 PR_Shutdown(sock, PR_SHUTDOWN_SEND);
213 n = PR_Read(sock, buf, sizeof(buf));
229 PR_Close(sock);
H A Dy2ktmo.c156 PRFileDesc *sock; local
160 sock = PR_NewTCPSocket();
161 if (sock == NULL) {
169 if (PR_Bind(sock, &addr) == PR_FAILURE) {
173 if (PR_Listen(sock, 5) == PR_FAILURE) {
177 accepted = PR_Accept(sock, NULL, timeout);
204 if (PR_Close(sock) == PR_FAILURE) {
228 PRFileDesc *sock; local
233 sock = PR_NewTCPSocket();
234 if (sock
[all...]
H A Daccept.c142 PRFileDesc *sock = NULL; local
153 sock = PR_NewTCPSocket();
154 if (!sock) {
164 if ((rv = PR_Connect(sock, &serverAddr,
176 if ((rv = PR_Send(sock, buf, CLIENT_DATA,
194 PR_Close(sock);
195 sock = NULL;
201 if (sock != NULL)
202 PR_Close(sock);
H A Dsel_spd.c107 int _readn(PRFileDesc *sock, char *buf, int len) argument
113 bytes = PR_Recv(sock, buf+len-rem, rem, 0, PR_INTERVAL_NO_TIMEOUT);
144 PRFileDesc *sock; local
170 if ( (sock = PR_NewTCPSocket()) == NULL) {
177 if ( PR_SetSocketOption(sock, &sockopt) == PR_FAILURE) {
187 if ( PR_Bind(sock, &sa) < 0) {
192 if ( PR_Listen(sock, 32) < 0 ) {
215 if ( (newsock = PR_Accept(sock, &sa,
272 if (sock) PR_Close(sock);
[all...]
/vbox/src/VBox/Devices/PC/ipxe/src/core/
H A Di82365.c120 static u_char i365_get(u_short sock, u_short reg) argument
125 ioaddr_t port = pccsock[sock].ioaddr;
127 reg = I365_REG(pccsock[sock].internalid, reg);
134 static void i365_set(u_short sock, u_short reg, u_char data) argument
139 ioaddr_t port = pccsock[sock].ioaddr;
140 u_char val = I365_REG(pccsock[sock].internalid, reg);
164 void i365_bset(u_short sock, u_short reg, u_char mask) { argument
165 u_char d = i365_get(sock, reg);
167 i365_set(sock, reg, d);
170 void i365_bclr(u_short sock, u_shor argument
254 int i, j, sock, k, ns, id; local
[all...]
/vbox/src/VBox/RDP/client-1.8.3/
H A Dctrl.c63 int sock; member in struct:_ctrl_slave_t
69 _ctrl_slave_new(int sock) argument
76 ns->sock = sock;
99 _ctrl_slave_disconnect(int sock) argument
108 /* find slave with sock */
109 while (it->next && it->sock != sock)
112 if (it->sock == sock)
[all...]
/vbox/src/VBox/Devices/Network/lwip/src/api/
H A Dsockets.c117 struct lwip_socket *sock; local
125 sock = &sockets[s];
127 if (!sock->conn) {
133 return sock;
168 struct lwip_socket *sock; local
176 sock = get_socket(s);
177 if (!sock) {
182 newconn = netconn_accept(sock->conn);
201 sock_set_errno(sock, ENOBUFS);
205 sock
223 struct lwip_socket *sock; local
257 struct lwip_socket *sock; local
288 struct lwip_socket *sock; local
328 struct lwip_socket *sock; local
354 struct lwip_socket *sock; local
472 struct lwip_socket *sock; local
530 struct lwip_socket *sock; local
813 struct lwip_socket *sock; local
908 struct lwip_socket *sock; local
942 struct lwip_socket *sock; local
977 struct lwip_socket *sock = get_socket(s); local
1166 struct lwip_socket *sock = get_socket(s); local
1332 struct lwip_socket *sock = get_socket(s); local
[all...]
/vbox/src/VBox/GuestHost/OpenGL/util/
H A Dtcpip.c170 void crCloseSocket( CRSocket sock )
174 if (sock <= 0)
178 SocketDestroyCallback(CR_SOCKET_DESTROY, sock);
182 fail = ( closesocket( sock ) != 0 );
184 shutdown( sock, 2 /* RDWR */ );
185 fail = ( close( sock ) != 0 );
190 crWarning( "crCloseSocket( sock=%d ): %s",
191 sock, crTCPIPErrorString( err ) );
202 __tcpip_read_exact( CRSocket sock, void *buf, unsigned int len ) argument
209 if ( sock <
273 __tcpip_write_exact( CRSocket sock, const void *buf, unsigned int len ) argument
392 int i, sock = -1; local
821 const int sock = conn->tcp_socket; local
998 CRSocket sock = conn->tcp_socket; local
1103 CRSocket sock; local
[all...]
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/md/windows/
H A Dw16sock.c96 SOCKET sock; local
104 sock = socket(af, type, flags);
106 if (sock == INVALID_SOCKET )
109 closesocket(sock);
117 rv = ioctlsocket( sock, FIONBIO, &one);
124 return (PRInt32)sock;
H A Dntio.c1048 _NT_IO_ABORT(PRInt32 sock) argument
1096 if (sock != INVALID_SOCKET) {
1097 rv = closesocket((SOCKET)sock);
1142 SOCKET sock; local
1144 sock = socket(af, type, flags);
1146 if (sock == INVALID_SOCKET) {
1150 return (PRInt32)sock;
1428 PRInt32 sock = sd->secret->md.osfd; local
1443 rv = _md_Associate((HANDLE)sock);
1467 me->io_fd = sock;
1602 _PR_MD_SENDFILE(PRFileDesc *sock, PRSendFileData *sfd, PRInt32 flags, PRIntervalTime timeout) argument
[all...]
/vbox/src/VBox/Devices/Network/lwip-new/src/api/
H A Dsockets.c76 #define SOCK_ADDR_TYPE_MATCH(name, sock) \
77 ((((name)->sa_family == AF_INET) && !(NETCONNTYPE_ISIPV6((sock)->conn->type))) || \
78 (((name)->sa_family == AF_INET6) && (NETCONNTYPE_ISIPV6((sock)->conn->type))))
105 #define SOCK_ADDR_TYPE_MATCH(name, sock) 1
115 #define SOCK_ADDR_TYPE_MATCH_OR_UNSPEC(name, sock) (((name)->sa_family == AF_UNSPEC) || \
116 SOCK_ADDR_TYPE_MATCH(name, sock))
167 struct lwip_sock *sock; member in struct:lwip_setgetsockopt_data
269 struct lwip_sock *sock; local
277 sock = &sockets[s];
279 if (!sock
352 free_socket(struct lwip_sock *sock, int is_tcp) argument
386 struct lwip_sock *sock, *nsock; local
477 struct lwip_sock *sock; local
520 struct lwip_sock *sock; local
546 struct lwip_sock *sock; local
601 struct lwip_sock *sock; local
634 struct lwip_sock *sock; local
818 struct lwip_sock *sock; local
855 struct lwip_sock *sock; local
1105 struct lwip_sock *sock; local
1230 struct lwip_sock *sock = tryget_socket(i); local
1262 struct lwip_sock *sock = tryget_socket(i); local
1322 struct lwip_sock *sock; local
1441 struct lwip_sock *sock; local
1482 struct lwip_sock *sock; local
1528 struct lwip_sock *sock = get_socket(s); local
1748 struct lwip_sock *sock; local
1973 struct lwip_sock *sock = get_socket(s); local
2205 struct lwip_sock *sock; local
2435 struct lwip_sock *sock = get_socket(s); local
2530 struct lwip_sock *sock = get_socket(s); local
[all...]
/vbox/src/VBox/GuestHost/OpenGL/include/
H A Dcr_net.h277 extern DECLEXPORT(void) crCloseSocket( CRSocket sock ); variable
/vbox/src/VBox/NetworkServices/NAT/
H A Dpxtcp.c128 SOCKET sock; member in struct:pxtcp
403 LWIP_ASSERT1(pxtcp->sock >= 0);
408 status = pollmgr_add(&pxtcp->pmhdl, pxtcp->sock, pxtcp->events);
440 DPRINTF0(("pxtcp_add: new pxtcp %p; pcb %p; sock %d\n",
441 (void *)pxtcp, (void *)pxtcp->pcb, pxtcp->sock));
457 * schedule pxtcp_pcb_forward_outbound() when sock is writable again.
527 DPRINTF(("PXTCP_DEL: pxtcp %p; pcb %p; sock %d\n",
528 (void *)pxtcp, (void *)pxtcp->pcb, pxtcp->sock));
559 DPRINTF0(("PXTCP_RESET: pxtcp %p; pcb %p; sock %d\n",
560 (void *)pxtcp, (void *)pxtcp->pcb, pxtcp->sock));
646 pxtcp_create_forwarded(SOCKET sock) argument
1004 SOCKET sock; local
[all...]
/vbox/src/libs/libxml2-2.6.31/
H A Dnanoftp.c1993 int sock; local
2005 sock = xmlNanoFTPGetSocket(ctxt, ctxt->path);
2006 if (sock < 0) {
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/misc/
H A Dprnetdb.c240 int sock; local
248 if ((sock = socket(AF_INET, SOCK_STREAM, 0)) == -1) {
258 close(sock);
263 rv = ioctl(sock, SIOCGIFCONF, &ifc);
266 close(sock);
278 close(sock);
/vbox/src/VBox/Devices/Network/slirp/libalias/
H A Dalias_db.c537 AliasLog(la->logDesc, " (sock=%u)\n", la->sockCount);
711 int sock; local
716 sock = socket(AF_INET, SOCK_STREAM, 0);
718 sock = socket(AF_INET, SOCK_DGRAM, 0);
727 if (sock < 0) {
744 err = bind(sock,
749 *sockfd = sock;
752 closesocket(sock);

Completed in 92 milliseconds

12