| ||Normal functionality.
||Read/write as much data as possible and return immediately.
||Wait for all required data to be read/written unless an error occurs.
||Block the GUI (do not yield) while reading/writing data.
Connects to a server using the specified address.
If wait is TRUE, Connect will wait until the connection completes. Warning: This will block the GUI.
If wait is FALSE, Connect will try to establish the connection and return immediately, without blocking the GUI. When used this way, even if Connect returns FALSE, the connection request can be completed later. To detect this, use WaitOnConnect, or catch wxSOCKET_CONNECTION events (for successful establishment) and wxSOCKET_LOST events (for connection failure).
Wait until a connection request completes, or until the specified timeout elapses. Use this function after issuing a call to socket_connect with wait set to false.