Version: 2.9.4
Public Member Functions
wxDatagramSocket Class Reference

#include </home/zeitlin/src/wx/github/interface/wx/socket.h>

Inheritance diagram for wxDatagramSocket:

Detailed Description

Todo:
docme

Library:  wxNet
Category:  Networking

Public Member Functions

 wxDatagramSocket (const wxSockAddress &addr, wxSocketFlags flags=wxSOCKET_NONE)
 Constructor.
virtual ~wxDatagramSocket ()
 Destructor.
wxDatagramSocketSendTo (const wxSockAddress &address, const void *buffer, wxUint32 nbytes)
 Write a buffer of nbytes bytes to the socket.

List of all members.


Constructor & Destructor Documentation

wxDatagramSocket::wxDatagramSocket ( const wxSockAddress addr,
wxSocketFlags  flags = wxSOCKET_NONE 
)

Constructor.

Parameters:
addrThe socket address.
flagsSocket flags (See wxSocketBase::SetFlags()).
virtual wxDatagramSocket::~wxDatagramSocket ( ) [virtual]

Destructor.

Please see wxSocketBase::Destroy().


Member Function Documentation

wxDatagramSocket& wxDatagramSocket::SendTo ( const wxSockAddress address,
const void *  buffer,
wxUint32  nbytes 
)

Write a buffer of nbytes bytes to the socket.

Use wxSocketBase::LastCount() to verify the number of bytes actually wrote. Use wxSocketBase::Error() to determine if the operation succeeded.

Parameters:
addressThe address of the destination peer for this data.
bufferBuffer where read data is.
nbytesNumber of bytes.
Returns:
Returns a reference to the current object.
参照:
wxSocketBase::LastError(), wxSocketBase::SetFlags()
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines