/vbox/include/iprt/ |
H A D | socket.h | 55 * @param hSocket The socket handle. 57 RTDECL(uint32_t) RTSocketRetain(RTSOCKET hSocket); variable 68 * @param hSocket The socket handle. The NIL handle is quietly 71 RTDECL(uint32_t) RTSocketRelease(RTSOCKET hSocket); variable 80 * @param hSocket The socket handle. NIL is ignored. 86 RTDECL(int) RTSocketClose(RTSOCKET hSocket); variable 104 * @param hSocket The socket handle. 106 RTDECL(RTHCUINTPTR) RTSocketToNative(RTSOCKET hSocket); variable 114 * @param hSocket The socket handle. 117 RTDECL(int) RTSocketSetInheritance(RTSOCKET hSocket, boo [all...] |
H A D | poll.h | 225 * @param hSocket The socket handle. 229 DECLINLINE(int) RTPollSetAddSocket(RTPOLLSET hPollSet, RTSOCKET hSocket, uint32_t fEvents, uint32_t id) argument 234 Handle.u.hSocket = hSocket;
|
H A D | tcp.h | 223 * @param hSocket The socket handle. 366 * @param hSocket The socket handle. 373 RTR3DECL(int) RTTcpSgWriteL(RTSOCKET hSocket, size_t cSegs, ...); 385 * @param hSocket The socket handle. 392 RTR3DECL(int) RTTcpSgWriteLV(RTSOCKET hSocket, size_t cSegs, va_list va); 447 * @param hSocket The socket handle. 455 RTR3DECL(int) RTTcpSgWriteLNB(RTSOCKET hSocket, size_t cSegs, size_t *pcbWritten, ...); 467 * @param hSocket The socket handle. 475 RTR3DECL(int) RTTcpSgWriteLVNB(RTSOCKET hSocket, size_t cSegs, size_t *pcbWritten, va_list va);
|
H A D | types.h | 2009 RTSOCKET hSocket; /**< Socket handle. */ member in union:RTHANDLEUNION
|
/vbox/src/VBox/Runtime/include/internal/ |
H A D | socket.h | 57 int rtSocketBind(RTSOCKET hSocket, PCRTNETADDR pAddr); 58 int rtSocketBindRawAddr(RTSOCKET hSocket, void const *pvAddr, size_t cbAddr); 59 int rtSocketListen(RTSOCKET hSocket, int cMaxPending); 60 int rtSocketAccept(RTSOCKET hSocket, PRTSOCKET phClient, struct sockaddr *pAddr, size_t *pcbAddr); 61 int rtSocketConnect(RTSOCKET hSocket, PCRTNETADDR pAddr, RTMSINTERVAL cMillies); 62 int rtSocketSetOpt(RTSOCKET hSocket, int iLevel, int iOption, void const *pvValue, int cbValue); 65 int rtSocketPollGetHandle(RTSOCKET hSocket, uint32_t fEvents, PRTHCINTPTR phNative); 66 uint32_t rtSocketPollStart(RTSOCKET hSocket, RTPOLLSET hPollSet, uint32_t fEvents, bool fFinalEntry, bool fNoWait); 67 uint32_t rtSocketPollDone(RTSOCKET hSocket, uint32_t fEvents, bool fFinalEntry, bool fHarvestEvents);
|
/vbox/src/VBox/Runtime/testcase/ |
H A D | tstRTTcp-1.cpp | 15 static DECLCALLBACK(int) test3Server(RTSOCKET hSocket, void *pvUser) argument 21 RTTESTI_CHECK_RC_RET(RTTcpWrite(hSocket, "hello\n", sizeof("hello\n") - 1), VINF_SUCCESS, VERR_TCP_SERVER_STOP); 23 RTTESTI_CHECK_RC_RET(RTTcpRead(hSocket, szBuf, sizeof("dude!\n") - 1, NULL), VINF_SUCCESS, VERR_TCP_SERVER_STOP); 32 RTTESTI_CHECK_RC_RET(RTTcpWrite(hSocket, szBuf, sizeof(szBuf)), VINF_SUCCESS, VERR_TCP_SERVER_STOP); 64 RTSOCKET hSocket; local 65 RTTESTI_CHECK_RC(rc = RTTcpClientConnect("localhost", 9999, &hSocket), VINF_SUCCESS); 72 RTTESTI_CHECK_RC_BREAK(RTTcpRead(hSocket, szBuf, sizeof("hello\n") - 1, NULL), VINF_SUCCESS); 74 RTTESTI_CHECK_RC_BREAK(RTTcpWrite(hSocket, "dude!\n", sizeof("dude!\n") - 1), VINF_SUCCESS); 77 RTTESTI_CHECK_RC(RTTcpClientClose(hSocket), VINF_SUCCESS); 87 static DECLCALLBACK(int) test2Server(RTSOCKET hSocket, voi argument 116 RTSOCKET hSocket; local 138 test1Server(RTSOCKET hSocket, void *pvUser) argument 170 RTSOCKET hSocket; local [all...] |
/vbox/src/VBox/Runtime/r3/ |
H A D | udp.cpp | 108 RTSOCKET volatile hSocket; member in struct:RTUDPSERVER 168 RTSOCKET hSocket = rtUdpAtomicXchgSock(pSock, NIL_RTSOCKET); local 169 if (hSocket != NIL_RTSOCKET) 171 return rtUdpClose(hSocket, pszMsg); 321 pServer->hSocket = Sock; 409 RTSOCKET hSocket; local 410 ASMAtomicReadHandle(&pServer->hSocket, &hSocket); 411 if (hSocket != NIL_RTSOCKET) 412 RTSocketRetain(hSocket); 662 RTSOCKET hSocket; local [all...] |
H A D | socket.cpp | 471 RTDECL(uint32_t) RTSocketRetain(RTSOCKET hSocket) argument 473 RTSOCKETINT *pThis = hSocket; 541 RTDECL(uint32_t) RTSocketRelease(RTSOCKET hSocket) argument 543 RTSOCKETINT *pThis = hSocket; 559 RTDECL(int) RTSocketClose(RTSOCKET hSocket) argument 561 RTSOCKETINT *pThis = hSocket; 577 RTDECL(RTHCUINTPTR) RTSocketToNative(RTSOCKET hSocket) argument 579 RTSOCKETINT *pThis = hSocket; 586 RTDECL(int) RTSocketSetInheritance(RTSOCKET hSocket, bool fInheritable) argument 588 RTSOCKETINT *pThis = hSocket; 827 RTSocketRead(RTSOCKET hSocket, void *pvBuffer, size_t cbBuffer, size_t *pcbRead) argument 895 RTSocketReadFrom(RTSOCKET hSocket, void *pvBuffer, size_t cbBuffer, size_t *pcbRead, PRTNETADDR pSrcAddr) argument 949 RTSocketWrite(RTSOCKET hSocket, const void *pvBuffer, size_t cbBuffer) argument 1018 RTSocketWriteTo(RTSOCKET hSocket, const void *pvBuffer, size_t cbBuffer, PCRTNETADDR pAddr) argument 1072 RTSocketSgWrite(RTSOCKET hSocket, PCRTSGBUF pSgBuf) argument 1151 RTSocketSgWriteL(RTSOCKET hSocket, size_t cSegs, ...) argument 1161 RTSocketSgWriteLV(RTSOCKET hSocket, size_t cSegs, va_list va) argument 1182 RTSocketReadNB(RTSOCKET hSocket, void *pvBuffer, size_t cbBuffer, size_t *pcbRead) argument 1236 RTSocketWriteNB(RTSOCKET hSocket, const void *pvBuffer, size_t cbBuffer, size_t *pcbWritten) argument 1288 RTSocketSgWriteNB(RTSOCKET hSocket, PCRTSGBUF pSgBuf, size_t *pcbWritten) argument 1354 RTSocketSgWriteLNB(RTSOCKET hSocket, size_t cSegs, size_t *pcbWritten, ...) argument 1364 RTSocketSgWriteLVNB(RTSOCKET hSocket, size_t cSegs, size_t *pcbWritten, va_list va) argument 1385 RTSocketSelectOne(RTSOCKET hSocket, RTMSINTERVAL cMillies) argument 1427 RTSocketSelectOneEx(RTSOCKET hSocket, uint32_t fEvents, uint32_t *pfEvents, RTMSINTERVAL cMillies) argument 1491 RTSocketShutdown(RTSOCKET hSocket, bool fRead, bool fWrite) argument 1521 RTSocketGetLocalAddress(RTSOCKET hSocket, PRTNETADDR pAddr) argument 1551 RTSocketGetPeerAddress(RTSOCKET hSocket, PRTNETADDR pAddr) argument 1589 rtSocketBind(RTSOCKET hSocket, PCRTNETADDR pAddr) argument 1609 rtSocketBindRawAddr(RTSOCKET hSocket, void const *pvAddr, size_t cbAddr) argument 1639 rtSocketListen(RTSOCKET hSocket, int cMaxPending) argument 1670 rtSocketAccept(RTSOCKET hSocket, PRTSOCKET phClient, struct sockaddr *pAddr, size_t *pcbAddr) argument 1729 rtSocketConnect(RTSOCKET hSocket, PCRTNETADDR pAddr, RTMSINTERVAL cMillies) argument 1828 rtSocketSetOpt(RTSOCKET hSocket, int iLevel, int iOption, void const *pvValue, int cbValue) argument 1856 rtSocketPollGetHandle(RTSOCKET hSocket, uint32_t fEvents, PRTHCINTPTR phNative) argument 2055 rtSocketPollStart(RTSOCKET hSocket, RTPOLLSET hPollSet, uint32_t fEvents, bool fFinalEntry, bool fNoWait) argument 2127 rtSocketPollDone(RTSOCKET hSocket, uint32_t fEvents, bool fFinalEntry, bool fHarvestEvents) argument [all...] |
H A D | tcp.cpp | 196 RTSOCKET hSocket = rtTcpAtomicXchgSock(pSock, NIL_RTSOCKET); local 197 if (hSocket != NIL_RTSOCKET) 200 RTSocketShutdown(hSocket, true /*fRead*/, true /*fWrite*/); 201 return rtTcpClose(hSocket, pszMsg, fTryGracefulShutdown); 905 * @param hSocket The socket to work on. 908 static int rtTcpSetBlockingMode(RTHCUINTPTR hSocket, bool fBlocking) argument 913 if (ioctlsocket(hSocket, FIONBIO, &uBlocking)) 917 int fFlags = fcntl(hSocket, F_GETFL, 0); 925 if (fcntl(hSocket, F_SETFL, fFlags) == -1) 1086 RTR3DECL(int) RTTcpSgWriteL(RTSOCKET hSocket, size_ argument 1096 RTTcpSgWriteLV(RTSOCKET hSocket, size_t cSegs, va_list va) argument 1120 RTTcpSgWriteLNB(RTSOCKET hSocket, size_t cSegs, size_t *pcbWritten, ...) argument 1130 RTTcpSgWriteLVNB(RTSOCKET hSocket, size_t cSegs, size_t *pcbWritten, va_list va) argument [all...] |
H A D | poll.cpp | 187 fEvents = rtSocketPollStart(pThis->paHandles[i].u.hSocket, pThis, pThis->paHandles[i].fEvents, 225 rtSocketPollDone(pThis->paHandles[i].u.hSocket, pThis->paHandles[i].fEvents, 333 fEvents = rtSocketPollDone(pThis->paHandles[i].u.hSocket, pThis->paHandles[i].fEvents, 769 uh.hSocket = pHandle->u.hSocket; 770 if (uh.hSocket == NIL_RTSOCKET) 772 rc = rtSocketPollGetHandle(uh.hSocket, fEvents, &hNative);
|
/vbox/src/VBox/ValidationKit/utils/network/ |
H A D | NetPerf.cpp | 166 RTSOCKET hSocket; member in struct:NETPERFPARAMS 335 * @param hSocket The TCP socket to send them to. 337 static int netperfSendStats(NETPERFSTATS const *pStats, RTSOCKET hSocket) argument 353 int rc = RTTcpWrite(hSocket, szBuf, cch + NETPERF_LEN_PREFIX); 360 rc = RTTcpRead(hSocket, szBuf, sizeof(g_szAck) - 1, NULL); 377 * @param hSocket The TCP socket to recevie them from. 379 static int netperfRecvStats(NETPERFSTATS *pStats, RTSOCKET hSocket) argument 386 int rc = RTTcpRead(hSocket, szBuf, NETPERF_LEN_PREFIX, NULL); 399 rc = RTTcpRead(hSocket, szBuf, cch, NULL); 450 rc = RTTcpWrite(hSocket, g_szAc 1107 netperfTCPServerWorker(RTSOCKET hSocket, void *pvUser) argument 1597 RTSOCKET hSocket = NIL_RTSOCKET; local [all...] |
/vbox/src/VBox/VMM/VMMR3/ |
H A D | FTM.cpp | 120 pVM->ftm.s.hSocket = NIL_RTSOCKET; 168 if (pVM->ftm.s.hSocket != NIL_RTSOCKET) 170 RTTcpClientClose(pVM->ftm.s.hSocket); 171 pVM->ftm.s.hSocket = NIL_RTSOCKET; 200 int rc = RTTcpWrite(pVM->ftm.s.hSocket, RT_STR_TUPLE("ACK\n")); 222 int rc = RTTcpWrite(pVM->ftm.s.hSocket, szMsg, cch); 241 RTSOCKET Sock = pVM->ftm.s.hSocket; 336 int rc = RTTcpSgWriteL(pVM->ftm.s.hSocket, 2, pszCommand, strlen(pszCommand), RT_STR_TUPLE("\n")); 362 int rc = RTTcpSgWriteL(pVM->ftm.s.hSocket, 2, &Hdr, sizeof(Hdr), pvBuf, (size_t)Hdr.cb); 396 rc = RTTcpSelectOne(pVM->ftm.s.hSocket, 100 [all...] |
/vbox/src/VBox/Devices/USB/usbip/ |
H A D | USBProxyDevice-usbip.cpp | 317 RTSOCKET hSocket; member in struct:USBPROXYDEVUSBIP 579 rc = RTTcpClientConnect(pProxyDevUsbIp->pszHost, pProxyDevUsbIp->uPort, &pProxyDevUsbIp->hSocket); 583 rc = RTTcpSetSendCoalescing(pProxyDevUsbIp->hSocket, false); 595 rc = RTTcpWrite(pProxyDevUsbIp->hSocket, &ReqImport, sizeof(ReqImport)); 600 rc = RTTcpRead(pProxyDevUsbIp->hSocket, &RetImport, sizeof(RetImport), NULL); 612 rc = RTTcpRead(pProxyDevUsbIp->hSocket, &Device, sizeof(Device), NULL); 618 rc = RTPollSetAddSocket(pProxyDevUsbIp->hPollSet, pProxyDevUsbIp->hSocket, 647 RTTcpClientCloseEx(pProxyDevUsbIp->hSocket, false /*fGracefulShutdown*/); 664 rc = RTTcpClientCloseEx(pProxyDevUsbIp->hSocket, false /*fGracefulShutdown*/); 666 pProxyDevUsbIp->hSocket [all...] |
/vbox/src/VBox/VMM/include/ |
H A D | FTMInternal.h | 68 RTSOCKET hSocket; member in struct:FTM
|
/vbox/src/VBox/Runtime/r3/posix/ |
H A D | RTHandleGetStandard-posix.cpp | 120 rc = rtSocketCreateForNative(&h.u.hSocket, fd);
|
H A D | process-creation-posix.cpp | 347 aStdFds[i] = paHandles[i]->u.hSocket != NIL_RTSOCKET 348 ? (int)RTSocketToNative(paHandles[i]->u.hSocket)
|
/vbox/src/VBox/Runtime/r3/win/ |
H A D | RTHandleGetStandard-win.cpp | 114 rc = rtSocketCreateForNative(&h.u.hSocket, (RTHCUINTPTR)hNative);
|
H A D | process-win.cpp | 1174 *aphStds[i] = paHandles[i]->u.hSocket != NIL_RTSOCKET 1175 ? (HANDLE)RTSocketToNative(paHandles[i]->u.hSocket)
|
/vbox/src/VBox/Devices/Storage/ |
H A D | DrvVD.cpp | 1090 RTSOCKET hSocket; member in struct:VDSOCKETINT 1121 pSockInt->hSocket = NIL_RTSOCKET; 1176 if (pSockInt->hSocket != NIL_RTSOCKET) 1191 if (pSockInt->hSocket != NIL_RTSOCKET) 1192 rc = RTTcpClientCloseEx(pSockInt->hSocket, false /*fGracefulShutdown*/); 1206 rc = RTTcpClientConnectEx(pszAddress, uPort, &pSockInt->hSocket, cMillies, NULL); 1214 rc = RTPollSetAddSocket(pSockInt->hPollSet, pSockInt->hSocket, 1221 rc = RTTcpClientCloseEx(pSockInt->hSocket, false /*fGracefulShutdown*/); 1239 rc = RTTcpClientCloseEx(pSockInt->hSocket, false /*fGracefulShutdown*/); 1240 pSockInt->hSocket [all...] |
/vbox/src/VBox/Main/src-server/ |
H A D | MediumImpl.cpp | 188 RTSOCKET hSocket; member in struct:VDSOCKETINT 7066 pSocketInt->hSocket = NIL_RTSOCKET; 7075 if (pSocketInt->hSocket != NIL_RTSOCKET) 7076 RTTcpClientCloseEx(pSocketInt->hSocket, false /*fGracefulShutdown*/); 7088 return RTTcpClientConnectEx(pszAddress, uPort, &pSocketInt->hSocket, cMillies, NULL); 7096 rc = RTTcpClientCloseEx(pSocketInt->hSocket, false /*fGracefulShutdown*/); 7097 pSocketInt->hSocket = NIL_RTSOCKET; 7104 return pSocketInt->hSocket != NIL_RTSOCKET; 7110 return RTTcpSelectOne(pSocketInt->hSocket, cMillies); 7116 return RTTcpRead(pSocketInt->hSocket, pvBuffe [all...] |