Changeset 70482 in vbox
- Timestamp:
- Jan 7, 2018 6:46:33 PM (7 years ago)
- File:
-
- 1 edited
-
trunk/src/VBox/Runtime/r3/tcp.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/tcp.cpp
r69111 r70482 1021 1021 1022 1022 1023 /** 1024 * Creates connected pair of TCP sockets. 1025 * 1026 * @returns IPRT status code. 1027 * @param phServer Where to return the "server" side of the pair. 1028 * @param phClient Where to return the "client" side of the pair. 1029 * 1030 * @note There is no server or client side, but we gotta call it something. 1031 */ 1032 RTR3DECL(int) RTTcpCreatePair(PRTSOCKET phServer, PRTSOCKET phClient, uint32_t fFlags) 1033 { 1034 /* 1035 * Validate input. 1036 */ 1037 AssertPtrReturn(phServer, VERR_INVALID_PARAMETER); 1038 AssertPtrReturn(phClient, VERR_INVALID_PARAMETER); 1039 AssertReturn(!fFlags, VERR_INVALID_PARAMETER); 1040 1041 /* 1042 * Do the job. 1043 */ 1044 return rtSocketCreateTcpPair(phServer, phClient); 1045 } 1046 1047 1023 1048 RTR3DECL(int) RTTcpRead(RTSOCKET Sock, void *pvBuffer, size_t cbBuffer, size_t *pcbRead) 1024 1049 {
Note:
See TracChangeset
for help on using the changeset viewer.

