#include <wx/socket.h>

Public Member Functions | |
| wxDatagramSocket (const wxSockAddress &addr, wxSocketFlags flags=wxSOCKET_NONE) | |
| Constructor. | |
| virtual | ~wxDatagramSocket () |
| Destructor. | |
| wxDatagramSocket & | SendTo (const wxSockAddress &address, const void *buffer, wxUint32 nbytes) |
| Write a buffer of nbytes bytes to the socket. | |
| wxDatagramSocket::wxDatagramSocket | ( | const wxSockAddress & | addr, | |
| wxSocketFlags | flags = wxSOCKET_NONE | |||
| ) |
Constructor.
| addr | The socket address. | |
| flags | Socket flags (See wxSocketBase::SetFlags()). |
| virtual wxDatagramSocket::~wxDatagramSocket | ( | ) | [virtual] |
Destructor.
Please see wxSocketBase::Destroy().
| 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.
| address | The address of the destination peer for this data. | |
| buffer | Buffer where read data is. | |
| nbytes | Number of bytes. |
|
[ top ] |