This method obtains a pointer to a CSocket object, when you have a SOCKET handle. If a CSocket object is not attached to the handle passed in the hSocket parameter, this method returns NULL. It does not create a temporary object.
Header file: | Afxsock.h |
Platforms: | H/PC 2.0, Palm-size PC, H/PC Pro |
Windows CE versions: | 2.0 and later |
Complete documentation | Visual C++ documentation |
static CSocket* WINSOCKAPI FromHandle( SOCKET hSocket );