Add wxSocketBase::GetSocket() returning socket descriptor
|Reported by:||botg||Owned by:|
Sometimes it is necessary to have access to the socket file descriptor, e.g. for use with WSAIoctl under Windows.
To make this possible, I've added the protected function wxSocketBase::GetInternalSocket which simply returns m_socket. From there on, the program can get the file descriptor from GSocket which has everything declared public. According to tn0020.txt, this shouldn't change the ABI.
Leave this function undocumented since it should rarely be used and virtually all usage scenarios are platform specific and not portable at all.
Change History (13)
Changed 8 years ago by botg
comment:6 Changed 2 years ago by lpoujoulat
- Component set to network
- Keywords socket added
- Status changed from closed to reopened
- Type set to build error
- Version set to 2.9-svn
comment:7 Changed 2 years ago by vadz
- Cc vadz removed
- Patch unset
- Status changed from reopened to confirmed
- Summary changed from Add wxSocketBase::GetInternalSocket to Add wxSocketBase::GetSocket() returning socket descriptor