AdsLib
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Friends | List of all members
AmsConnection Struct Reference

Public Member Functions

 AmsConnection (Router &__router, const struct addrinfo *destination=nullptr)
 
SharedDispatcher CreateNotifyMapping (uint32_t hNotify, std::shared_ptr< Notification > notification)
 
long DeleteNotification (const AmsAddr &amsAddr, uint32_t hNotify, uint32_t tmms, uint16_t port)
 
long AdsRequest (AmsRequest &request, uint32_t timeout)
 
bool IsConnectedTo (const struct addrinfo *targetAddresses) const
 

Public Attributes

const uint32_t ownIp
 

Friends

struct AmsRouter
 

Member Function Documentation

◆ IsConnectedTo()

bool AmsConnection::IsConnectedTo ( const struct addrinfo *  targetAddresses) const

Confirm if this AmsConnection is connected to one of the target addresses.

Parameters
[in]targetAddressespointer to a previously allocated list of "struct addrinfo" returned by getaddrinfo(3).
Returns
true, this connection can be used to reach one of the targetAddresses.

The documentation for this struct was generated from the following files: