#include <Connection.h>
|
| ConnectionUDP ()=default |
|
| ~ConnectionUDP () |
|
SocketType | type () const override |
|
IPProto | proto () const override |
|
void | setMulticastAdapter (const AddrIn &addr) |
|
virtual bool | bind (AddrIn ip, uint16_t port) override |
| Sets this connection up as a listener that will listen for and respond to incoming connection requests on the specified port.
|
|
virtual bool | disconnect () override |
|
| ConnectionBase () |
|
virtual | ~ConnectionBase () |
|
Family | family () const |
|
virtual SocketType | type () const =0 |
|
virtual IPProto | proto () const =0 |
|
Socket | getSocket () const |
|
void | remove () |
|
void | removeAndDelete () |
|
const SockaddrIn & | getAddress () const |
|
int64_t | getReconnectTime () const |
|
virtual bool | isAutoConnectEnabled () const |
|
virtual bool | isConnected () const |
|
bool | shouldRemove () const |
|
bool | shouldDelete () const |
|
void | setNonblocking (bool val=true) |
| Sets socket non-blocking mode to val.
|
|
void | setDoNotProcess () |
|
virtual bool | reconnect () |
|
virtual bool | disconnect ()=0 |
|
bool | bind (uint16_t port) |
|
virtual bool | bind (AddrIn ip, uint16_t port) |
| Sets this connection up as a listener that will listen for and respond to incoming connection requests on the specified port.
|
|
bool | send (const void *data, uint64_t byteCount, uint64_t &bytesSent) |
| Attempts to send as much of the specified data as possible.
|
|
bool | receive (void *buffer, uint64_t byteCount, uint64_t &bytesReceived) |
| Attempts to read the specified number of bytes from the network socket this connection represents.
|
|
bool | sendTo (const void *data, uint64_t byteCount, uint64_t &bytesSent, const SockaddrIn &addr) |
| Attempts to send as much of the specified data as possible.
|
|
bool | recvFrom (void *buffer, uint64_t byteCount, uint64_t &bytesReceived, SockaddrIn &addr) |
| Attempts to read the specified number of bytes from the network socket this connection represents.
|
|
virtual bool | processOutgoing () |
|
virtual bool | processIncoming () |
|
◆ ConnectionUDP()
Cogs::Network::ConnectionUDP::ConnectionUDP |
( |
| ) |
|
|
default |
◆ ~ConnectionUDP()
Cogs::Network::ConnectionUDP::~ConnectionUDP |
( |
| ) |
|
◆ bind()
bool Cogs::Network::ConnectionUDP::bind |
( |
AddrIn |
ip, |
|
|
uint16_t |
port |
|
) |
| |
|
overridevirtual |
◆ disconnect()
bool Cogs::Network::ConnectionUDP::disconnect |
( |
| ) |
|
|
overridevirtual |
◆ proto()
IPProto Cogs::Network::ConnectionUDP::proto |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ setMulticastAdapter()
void Cogs::Network::ConnectionUDP::setMulticastAdapter |
( |
const AddrIn & |
addr | ) |
|
|
inline |
◆ type()
SocketType Cogs::Network::ConnectionUDP::type |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ multicastAdapter
AddrIn Cogs::Network::ConnectionUDP::multicastAdapter |
|
private |
The documentation for this class was generated from the following files: