adapnex::core::UDPConnection

Represents a UDP connection.

Synopsis

Declared in <adapnex/core/network.h>

class UDPConnection
    : public boost::noncopyable

Description

Not thread‐safe.

Base Classes

Name

Description

boost::noncopyable

Member Functions

Name

Description

~UDPConnection [destructor] [virtual]

Destructor

Close [virtual]

Closes the connection.

ReadPacket [virtual]

Receives a datagram from the peer if available and returns immediately (non‐blocking).

WritePacket [virtual]

Sends a datagram to the peer and returns immediately (non‐blocking).

Static Member Functions

Name

Description

Create

Creates a UDPConnection instance that only sends/receives datagrams to/from the given IPv4 address and port.

Create

Creates a UDPConnection instance that only sends/receives datagrams to/from the given host and port.

Created with MrDocs