Changeset 57957 in vbox for trunk/src/VBox/Runtime/r3/udp.cpp
- Timestamp:
- Sep 29, 2015 10:47:47 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/udp.cpp
r57955 r57957 688 688 689 689 690 RTR3DECL(int) RTUdpCreateClientSocket(const char *pszAddress, uint32_t uPort, PRT SOCKET pSock)690 RTR3DECL(int) RTUdpCreateClientSocket(const char *pszAddress, uint32_t uPort, PRTNETADDR pDefaultDstAddr, PRTSOCKET pSock) 691 691 { 692 692 /* … … 715 715 if (RT_SUCCESS(rc)) 716 716 { 717 *pSock = Sock; 718 return VINF_SUCCESS; 717 if (pDefaultDstAddr) 718 rc = rtSocketConnect(Sock, pDefaultDstAddr, 0); 719 if (RT_SUCCESS(rc)) 720 { 721 *pSock = Sock; 722 return VINF_SUCCESS; 723 } 719 724 } 720 725 RTSocketClose(Sock); … … 722 727 return rc; 723 728 } 729
Note:
See TracChangeset
for help on using the changeset viewer.