|
OpenCPN Partial API docs
|
Driver for NMEA0183 over TCP/IP. More...
#include <comm_drv_n0183_net.h>
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< NavAddr > | GetAddress () |
| 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) | |
Driver for NMEA0183 over TCP/IP.
Definition at line 61 of file comm_drv_n0183_net.h.
| CommDriverN0183Net::CommDriverN0183Net | ( | const ConnectionParams * | params, |
| DriverListener & | listener | ||
| ) |
Definition at line 142 of file comm_drv_n0183_net.cpp.
|
virtual |
Definition at line 175 of file comm_drv_n0183_net.cpp.
| void CommDriverN0183Net::Close | ( | ) |
Definition at line 612 of file comm_drv_n0183_net.cpp.
|
inline |
Definition at line 70 of file comm_drv_n0183_net.h.
|
inline |
Definition at line 84 of file comm_drv_n0183_net.h.
| void CommDriverN0183Net::OnServerSocketEvent | ( | wxSocketEvent & | event | ) |
Definition at line 535 of file comm_drv_n0183_net.cpp.
| void CommDriverN0183Net::OnSocketEvent | ( | wxSocketEvent & | event | ) |
Definition at line 367 of file comm_drv_n0183_net.cpp.
| void CommDriverN0183Net::OnSocketReadWatchdogTimer | ( | wxTimerEvent & | event | ) |
Definition at line 329 of file comm_drv_n0183_net.cpp.
| void CommDriverN0183Net::OnTimerSocket | ( | wxTimerEvent & | event | ) |
Definition at line 347 of file comm_drv_n0183_net.cpp.
| void CommDriverN0183Net::Open | ( | void | ) |
Definition at line 204 of file comm_drv_n0183_net.cpp.
| void CommDriverN0183Net::OpenNetworkGPSD | ( | ) |
Definition at line 316 of file comm_drv_n0183_net.cpp.
| void CommDriverN0183Net::OpenNetworkTCP | ( | unsigned int | addr | ) |
Definition at line 284 of file comm_drv_n0183_net.cpp.
| void CommDriverN0183Net::OpenNetworkUDP | ( | unsigned int | addr | ) |
Definition at line 236 of file comm_drv_n0183_net.cpp.
|
overridevirtual |
Implements CommDriverN0183.
Definition at line 360 of file comm_drv_n0183_net.cpp.
| bool CommDriverN0183Net::SendSentenceNetwork | ( | const wxString & | payload | ) |
Definition at line 563 of file comm_drv_n0183_net.cpp.
| bool CommDriverN0183Net::SetOutputSocketOptions | ( | wxSocketBase * | tsock | ) |
Definition at line 638 of file comm_drv_n0183_net.cpp.