Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
NetworkCommPort Class Reference#include <NetworkCommPort.h>
Inheritance diagram for NetworkCommPort:
![]() Detailed Descriptiondescription of NetworkCommPortYou probably want to use UDP if you're sending high-frequency, full-state updates, and use TCP if you're sending low-frequency or partial-state updates. Definition at line 13 of file NetworkCommPort.h.
Constructor & Destructor Documentation
Definition at line 15 of file NetworkCommPort.h.
destructor, checks that sbuf has already been closed
Definition at line 31 of file NetworkCommPort.h.
Member Function Documentation
Returns the name of the class (aka its type). Suggested implementation is to declare a static string member, set it to the result of calling the registry's registerType, and then return that member here Implements CommPort. Definition at line 36 of file NetworkCommPort.h. Referenced by plistValueChanged().
Returns a std::basic_streambuf, which is expected to implement the actual work. You can pass this to an istream to use the nice C++ style input and output, or you can call the streambuf functions directly. However, if you're going the latter route, probably easier to just call CommPort's own read() and write(). Depending on implementation, the streambuf this returns might be a different instance than getWriteStreambuf. If they are the same instance, then you could use an iostream instead of separate istream and ostream. Implements CommPort. Definition at line 38 of file NetworkCommPort.h.
Returns a std::basic_streambuf, which is expected to implement the actual work. You can pass this to an ostream to use the nice C++ style input and output, or you can call the streambuf functions directly. However, if you're going the latter route, probably easier to just call CommPort's own read() and write(). Depending on implementation, the streambuf this returns might be a different instance than getReadStreambuf. If they are the same instance, then you could use an iostream instead of separate istream and ostream. Implements CommPort. Definition at line 39 of file NetworkCommPort.h.
Allows you to check whether the reference from getWriteStreambuf() is currently functional (if checking is supported!). For streambufs which don't have a way to check this, always returns true. Reimplemented from CommPort. Definition at line 40 of file NetworkCommPort.h.
Allows you to check whether the reference from getReadStreambuf() is currently functional (if checking is supported!). For streambufs which don't have a way to check this, always returns true. Reimplemented from CommPort. Definition at line 41 of file NetworkCommPort.h.
activates the sbuf based on the current configuration settings
Implements CommPort. Definition at line 8 of file NetworkCommPort.cc. Referenced by plistValueChanged().
closes sbuf
Implements CommPort. Definition at line 54 of file NetworkCommPort.cc. Referenced by connectionError(), and plistValueChanged().
Displays message on stderr and if fatal is set, calls closeFD().
Definition at line 60 of file NetworkCommPort.h. Referenced by doOpen(), and ~NetworkCommPort().
attempts to make a connection, checking that the previous attempt wasn't too recent
Definition at line 22 of file NetworkCommPort.cc. Referenced by isReadable(), isWriteable(), and open().
Member Data Documentation
Definition at line 51 of file NetworkCommPort.h. Referenced by close(), doOpen(), NetworkCommPort(), open(), and plistValueChanged().
Definition at line 52 of file NetworkCommPort.h. Referenced by close(), doOpen(), NetworkCommPort(), open(), and plistValueChanged().
Definition at line 53 of file NetworkCommPort.h. Referenced by close(), doOpen(), NetworkCommPort(), open(), and plistValueChanged().
Definition at line 54 of file NetworkCommPort.h. Referenced by close(), doOpen(), NetworkCommPort(), open(), and plistValueChanged().
Definition at line 55 of file NetworkCommPort.h. Referenced by NetworkCommPort(), and plistValueChanged().
Definition at line 56 of file NetworkCommPort.h. Referenced by doOpen(), NetworkCommPort(), open(), and plistValueChanged().
Definition at line 69 of file NetworkCommPort.h. Referenced by close(), connectionError(), doOpen(), getReadStreambuf(), getWriteStreambuf(), isReadable(), isWriteable(), NetworkCommPort(), open(), and plistValueChanged().
Definition at line 70 of file NetworkCommPort.h. Referenced by doOpen(), open(), and plistValueChanged().
Definition at line 72 of file NetworkCommPort.h. Referenced by close(), isReadable(), isWriteable(), open(), and ~NetworkCommPort().
holds the class name, set via registration with the CommPort registry
Definition at line 76 of file NetworkCommPort.h. Referenced by getClassName().
The documentation for this class was generated from the following files: |
Tekkotsu Hardware Abstraction Layer 4.0 |
Generated Thu Nov 22 01:01:22 2007 by Doxygen 1.5.4 |