Derived from
Include files
<wx/socket.h>
wxSocketClient::wxSocketClient
wxSocketClient::~wxSocketClient
wxSocketClient::Connect
wxSocketClient::WaitOnConnect
wxSocketClient(wxSockFlags flags = wxSocketBase::NONE)
Constructs a new wxSocketClient.
Warning ! The new socket client needs to be registered to a socket handler (See wxSocketHandler).
Parameters
flags
~wxSocketClient()
Destroys a wxSocketClient object.
bool Connect(wxSockAddress& address, bool wait = TRUE)
Connects to a server using the specified address. If wait is TRUE, Connect will wait for the socket ready to send or receive data.
Parameters
address
wait
Return value
Returns TRUE if the connection is established and no error occurs.
See also
bool WaitOnConnect(long seconds = -1, long microseconds = 0)
Wait for a "connect" event.
See also
wxSocketBase::Wait for a detailed description.