Contents Up Previous Next

wxSocketClient

Derived from

wxSocketBase

Include files

<wx/socket.h>

wxSocketClient::wxSocketClient
wxSocketClient::~wxSocketClient
wxSocketClient::Connect
wxSocketClient::WaitOnConnect


wxSocketClient::wxSocketClient

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::~wxSocketClient

~wxSocketClient()

Destroys a wxSocketClient object.


wxSocketClient::Connect

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

wxSocketClient::WaitOnConnect


wxSocketClient::WaitOnConnect

bool WaitOnConnect(long seconds = -1, long microseconds = 0)

Wait for a "connect" event.

See also

wxSocketBase::Wait for a detailed description.