OpenCPN Partial API docs
Loading...
Searching...
No Matches
CommDriverN0183Net Class Reference

Driver for NMEA0183 over TCP/IP. More...

#include <comm_drv_n0183_net.h>

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 OnSocketEvent (wxSocketEvent &event)
 
void OpenNetworkGPSD ()
 
void OpenNetworkTCP (unsigned int addr)
 
void OpenNetworkUDP (unsigned int addr)
 
void OnSocketReadWatchdogTimer (wxTimerEvent &event)
 
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)
 
virtual bool SendMessage (std::shared_ptr< const NavMsg > msg, std::shared_ptr< const NavAddr > addr) override=0
 
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. More...
 
- Public Member Functions inherited from AbstractCommDriver
virtual bool SendMessage (std::shared_ptr< const NavMsg > msg, std::shared_ptr< const NavAddr > addr)=0
 
virtual void Activate ()=0
 Register driver in the driver Registry. More...
 
virtual void SetListener (DriverListener &l)
 Set the entity which will receive incoming data. More...
 
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. More...
 
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

Driver for NMEA0183 over TCP/IP.

Definition at line 61 of file comm_drv_n0183_net.h.

Constructor & Destructor Documentation

◆ CommDriverN0183Net()

CommDriverN0183Net::CommDriverN0183Net ( const ConnectionParams params,
DriverListener listener 
)

Definition at line 142 of file comm_drv_n0183_net.cpp.

◆ ~CommDriverN0183Net()

CommDriverN0183Net::~CommDriverN0183Net ( )
virtual

Definition at line 175 of file comm_drv_n0183_net.cpp.

Member Function Documentation

◆ Close()

void CommDriverN0183Net::Close ( )

Definition at line 612 of file comm_drv_n0183_net.cpp.

◆ GetParams()

ConnectionParams CommDriverN0183Net::GetParams ( ) const
inline

Definition at line 70 of file comm_drv_n0183_net.h.

◆ GetSock()

wxSocketBase * CommDriverN0183Net::GetSock ( ) const
inline

Definition at line 84 of file comm_drv_n0183_net.h.

◆ OnServerSocketEvent()

void CommDriverN0183Net::OnServerSocketEvent ( wxSocketEvent &  event)

Definition at line 535 of file comm_drv_n0183_net.cpp.

◆ OnSocketEvent()

void CommDriverN0183Net::OnSocketEvent ( wxSocketEvent &  event)

Definition at line 367 of file comm_drv_n0183_net.cpp.

◆ OnSocketReadWatchdogTimer()

void CommDriverN0183Net::OnSocketReadWatchdogTimer ( wxTimerEvent &  event)

Definition at line 329 of file comm_drv_n0183_net.cpp.

◆ OnTimerSocket()

void CommDriverN0183Net::OnTimerSocket ( wxTimerEvent &  event)

Definition at line 347 of file comm_drv_n0183_net.cpp.

◆ Open()

void CommDriverN0183Net::Open ( void  )

Definition at line 204 of file comm_drv_n0183_net.cpp.

◆ OpenNetworkGPSD()

void CommDriverN0183Net::OpenNetworkGPSD ( )

Definition at line 316 of file comm_drv_n0183_net.cpp.

◆ OpenNetworkTCP()

void CommDriverN0183Net::OpenNetworkTCP ( unsigned int  addr)

Definition at line 284 of file comm_drv_n0183_net.cpp.

◆ OpenNetworkUDP()

void CommDriverN0183Net::OpenNetworkUDP ( unsigned int  addr)

Definition at line 236 of file comm_drv_n0183_net.cpp.

◆ SendMessage()

bool CommDriverN0183Net::SendMessage ( std::shared_ptr< const NavMsg msg,
std::shared_ptr< const NavAddr addr 
)
overridevirtual

Implements CommDriverN0183.

Definition at line 360 of file comm_drv_n0183_net.cpp.

◆ SendSentenceNetwork()

bool CommDriverN0183Net::SendSentenceNetwork ( const wxString &  payload)

Definition at line 563 of file comm_drv_n0183_net.cpp.

◆ SetOutputSocketOptions()

bool CommDriverN0183Net::SetOutputSocketOptions ( wxSocketBase *  tsock)

Definition at line 638 of file comm_drv_n0183_net.cpp.


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