OpenCPN Partial API docs
CommDriverN0183Net Class Reference
Inheritance diagram for CommDriverN0183Net:
CommDriverN0183 AbstractCommDriver

Public Member Functions

 CommDriverN0183Net (const ConnectionParams *params, DriverListener &listener)
 
void Open ()
 
void Close ()
 
ConnectionParams GetParams () const
 
bool SetOutputSocketOptions (wxSocketBase *tsock)
 
bool SendSentenceNetwork (const wxString &payload)
 
void OnServerSocketEvent (wxSocketEvent &event)
 
void OnTimerSocket (wxTimerEvent &event)
 
void OnTimerSocket ()
 
void OnSocketEvent (wxSocketEvent &event)
 
void OpenNetworkGPSD ()
 
void OpenNetworkTCP (unsigned int addr)
 
void OpenNetworkUDP (unsigned int addr)
 
void OnSocketReadWatchdogTimer (wxTimerEvent &event)
 
void HandleResume ()
 
bool SendMessage (std::shared_ptr< const NavMsg > msg, std::shared_ptr< const NavAddr > addr) override
 
wxSocketBase * GetSock () const
 
- Public Member Functions inherited from CommDriverN0183
 CommDriverN0183 (NavAddr::Bus b, const std::string &s)
 
void SetListener (DriverListener &l) override
 Set the entity which will receive incoming data. More...
 
virtual std::shared_ptr< NavAddrGetAddress ()
 
void Activate () override
 Register driver in the driver Registry.
 
- Public Member Functions inherited from AbstractCommDriver
virtual std::pair< CommStatus, std::string > Clone ()
 Create a new virtual interface using a new instance of this driver. More...
 
std::string Key () const
 
virtual std::unordered_map< std::string, std::string > GetAttributes () const
 

Additional Inherited Members

- Public Attributes inherited from AbstractCommDriver
const NavAddr::Bus bus
 
const std::string iface
 Physical device for 0183, else a unique string.
 
std::unordered_map< std::string, std::string > attributes
 
- Protected Member Functions inherited from AbstractCommDriver
 AbstractCommDriver (NavAddr::Bus b)
 
 AbstractCommDriver (NavAddr::Bus b, const std::string &s)
 

Detailed Description

Definition at line 66 of file comm_drv_n0183_net.h.

Member Function Documentation

◆ OnSocketEvent()

void CommDriverN0183Net::OnSocketEvent ( wxSocketEvent &  event)

start the DATA watchdog only if NODATA Reconnect is desired

Definition at line 409 of file comm_drv_n0183_net.cpp.


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