contents up previous next

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.