wxSocketEvent Class Reference
[Networking]

#include <wx/socket.h>

Inheritance diagram for wxSocketEvent:

wxEvent wxObject

List of all members.


Detailed Description

This event class contains information about socket events.

Events:

The following event handler macros redirect the events to member function handlers 'func' with prototypes like:

void handlerFuncName(wxSocketEvent& event)
Event macros:
Library:  wxNet

Category:  Networking

See also:
wxSocketBase, wxSocketClient, wxSocketServer

Public Member Functions

 wxSocketEvent (int id=0)
void * GetClientData () const
wxSocketBaseGetSocket () const
wxSocketNotify GetSocketEvent () const

Constructor & Destructor Documentation

wxSocketEvent::wxSocketEvent ( int  id = 0  ) 

Constructor.


Member Function Documentation

void* wxSocketEvent::GetClientData (  )  const

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

wxSocketBase* wxSocketEvent::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.

wxSocketNotify wxSocketEvent::GetSocketEvent (  )  const

Returns the socket event type.



wxWidgets logo

[ top ]