/* Table of GUI-related functions. We must call them indirectly because
* of wxBase and GUI separation: */
/* Table of GUI-related functions. We must call them indirectly because
* of wxBase and GUI separation: */
{
/* 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) {
/* Do not use a static struct, Linux can garble it */
tv.tv_sec = m_timeout / 1000;
/* Do not use a static struct, Linux can garble it */
tv.tv_sec = m_timeout / 1000;
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);