{
/* socket must not be null, and must not be in use/already bound */
if (this && m_fd == INVALID_SOCKET) {
{
/* socket must not be null, and must not be in use/already bound */
if (this && m_fd == INVALID_SOCKET) {
getsockopt(m_fd, SOL_SOCKET, SO_ERROR, (void*)&error, &len);
getsockopt(m_fd, SOL_SOCKET, SO_ERROR, (void*)&error, &len);
/* Check for exceptions and errors (is this useful in Unices?) */
if (FD_ISSET(m_fd, &exceptfds))
{
/* Check for exceptions and errors (is this useful in Unices?) */
if (FD_ISSET(m_fd, &exceptfds))
{
getsockopt(m_fd, SOL_SOCKET, SO_ERROR, (void*)&error, &len);
getsockopt(m_fd, SOL_SOCKET, SO_ERROR, (void*)&error, &len);