wxSocketEvent

This event class contains information about socket events.

Derived from

wxEvent

Include files

<wx/socket.h>

Event table macros

To process a socket event, use these event handler macros to direct input to member functions that take a wxSocketEvent argument.

EVT_SOCKET(id, func) Process a socket event, supplying the member function.

See also

wxSocketBase, wxSocketClient, wxSocketServer



wxSocketEvent::wxSocketEvent



wxSocketEvent(int id = 0)

Constructor.



wxSocketEvent::GetClientData



void * GetClientData(void)

Gets the client data of the socket which generated this event, as set with wxSocketBase::SetClientData.



wxSocketEvent::GetSocket

wxSocketBase * GetSocket(void) const

Returns the socket object to which this event refers to. This makes it possible to use the same event handler for different sockets.



wxSocketEvent::GetSocketEvent

wxSocketNotify GetSocketEvent(void) const

Returns the socket event type.

ymasuda 平成17年11月19日