8#include "AmsConnection.h"
9#include <unordered_set>
15 long ClosePort(uint16_t port);
16 long GetLocalAddress(uint16_t port,
AmsAddr* pAddr);
17 void SetLocalAddress(
AmsNetId netId);
18 long GetTimeout(uint16_t port, uint32_t& timeout);
19 long SetTimeout(uint16_t port, uint32_t timeout);
20 long AddNotification(
AmsRequest& request, uint32_t* pNotification, std::shared_ptr<Notification> notify);
21 long DelNotification(uint16_t port,
const AmsAddr* pAddr, uint32_t hNotification);
32 std::recursive_mutex mutex;
33 std::unordered_set<std::unique_ptr<AmsConnection> > connections;
34 std::map<AmsNetId, AmsConnection*> mapping;
38 std::array<AmsPort, NUM_PORTS_MAX> ports;
The complete address of an ADS device can be stored in this structure.
Definition: AdsDef.h:237
Definition: AmsConnection.h:70
The NetId of and ADS device can be represented in this structure.
Definition: AdsDef.h:224
Definition: AmsConnection.h:20
Definition: AmsRouter.h:11
long AddRoute(AmsNetId ams, const IpV4 &ip)
Definition: AmsRouter.cpp:15