Lines Matching defs:sock
1128 bool wxSocketServer::AcceptWith(wxSocketBase& sock, bool wait)
1150 sock.m_type = wxSOCKET_BASE;
1151 sock.m_socket = child_socket;
1152 sock.m_connected = true;
1154 sock.m_socket->SetTimeout(sock.m_timeout * 1000);
1155 sock.m_socket->SetCallback(GSOCK_INPUT_FLAG | GSOCK_OUTPUT_FLAG |
1157 wx_socket_callback, (char *)&sock);
1164 wxSocketBase* sock = new wxSocketBase();
1166 sock->SetFlags(m_flags);
1168 if (!AcceptWith(*sock, wait))
1170 sock->Destroy();
1171 sock = NULL;
1174 return sock;