## 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

Members

wxSocketEvent::wxSocketEvent
wxSocketEvent::GetClientData
wxSocketEvent::GetSocket
wxSocketEvent::GetSocketEvent

### wxSocketEvent::wxSocketEvent

wxSocketEvent(int id = 0)

Constructor.

### wxSocketEvent::GetClientData

void * GetClientData()

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

### wxSocketEvent::GetSocket

wxSocketBase * GetSocket() 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() const

Returns the socket event type.