Diretta Connection class Performs basic communication processing for the host.
More...
#include <Connection.hpp>
|
|
| Connection () |
| | create connection
|
| |
|
| Connection (ACQUA::EthernetSocket &) |
| | create connection with socket
|
| |
|
| ~Connection () |
| | destroy connection
|
| |
|
void | setAdditionalAddress (const std::list< ACQUA::IPAddress > &add) |
| | Configure the address of a Target that cannot respond to multicast.
|
| |
|
| bool | open (ACQUA::IPAddress &) |
| | open socket
|
| |
|
void | close () |
| | close socket
|
| |
| bool | sendAck (const ConnectionBuffer &, const ACQUA::IPAddress &, MessageID, ConnectionBuffer &, ACQUA::Clock=ACQUA::Clock::MilliSeconds(30)) |
| | Send message and wait for response.
|
| |
|
bool | send (const ConnectionBuffer &data) |
| | Send message.
|
| |
|
bool | receive (ConnectionBuffer &data, ACQUA::IPAddress &add, ACQUA::Clock wtt=ACQUA::Clock()) |
| | Receive message.
|
| |
| bool | member (const ACQUA::IPAddress &addme) |
| | Begin receiving multicast data (join members)
|
| |
| bool | sendMulti (const ConnectionBuffer &msg, MessageID respMsg, std::map< ACQUA::IPAddress, std::unique_ptr< ConnectionBuffer > > &resalt, bool) |
| | Send message to multiple message and wait for response.
|
| |
| std::list< IfInfo > | getIfList (bool, bool discash=false) |
| | Get network interfaces.
|
| |
| bool | getIfMTU (std::uint32_t, std::uint32_t &) |
| | Get MTU of interface.
|
| |
|
| operator ACQUA::EthernetSocket * () |
| | Get socket object pointer.
|
| |
Diretta Connection class Performs basic communication processing for the host.
◆ dumpfile()
| static void DIRETTA::Connection::dumpfile |
( |
ACQUA::BufferCS_const | , |
|
|
const std::string & | = std::string() ) |
|
staticprotected |
Dump packet data during debugging.
- Parameters
-
| dump | buffer |
| filn | name (defalt /tmp/dump or ./dump) |
◆ getIfList()
| std::list< IfInfo > DIRETTA::Connection::getIfList |
( |
bool | , |
|
|
bool | discash = false ) |
|
protected |
Get network interfaces.
- Parameters
-
| loopback | interface support |
| not | use cache (update cahs) |
◆ getIfMTU()
| bool DIRETTA::Connection::getIfMTU |
( |
std::uint32_t | , |
|
|
std::uint32_t & | ) |
|
protected |
Get MTU of interface.
- Parameters
-
- Returns
- success or failure
◆ member()
Begin receiving multicast data (join members)
- Parameters
-
◆ open()
open socket
- Parameters
-
| Specify | the interface to use |
◆ sendAck()
Send message and wait for response.
- Parameters
-
| send | message buffer |
| send | address |
| wait | response message ID |
| receive | message buffer |
| wait | time (default 30ms) |
◆ sendMulti()
Send message to multiple message and wait for response.
- Parameters
-
| send | message buffer |
| wait | response message ID |
| receive | messages |
| loopback | interface support |
- Returns
- success or failure
The documentation for this class was generated from the following file: