Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
NetworkCommPort Class ReferenceInterfaces to a machine over the internet, TCP/IP or UDP/IP. More...
Inheritance diagram for NetworkCommPort:
Detailed DescriptionInterfaces to a machine over the internet, TCP/IP or UDP/IP. You 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 14 of file NetworkCommPort.h.
Constructor & Destructor Documentation
Definition at line 16 of file NetworkCommPort.h.
destructor, checks that sbuf has already been closed Definition at line 32 of file NetworkCommPort.h. Member Function Documentation
closes sbuf Implements CommPort. Definition at line 91 of file NetworkCommPort.cc. Referenced by connectionError(), and plistValueChanged().
Displays message on stderr and if fatal is set, calls closeFD(). Definition at line 61 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 47 of file NetworkCommPort.cc. Referenced by isReadable(), keepOpen(), and open().
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 37 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 39 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 40 of file NetworkCommPort.h. Referenced by Subscription< T >::closing(), Subscription< T >::doUnfreeze(), ImageSubscription::opened(), DepthSubscription::opened(), SensorSubscription::opened(), ImageSubscription::plistValueChanged(), DepthSubscription::plistValueChanged(), and Subscription< T >::requestFrame().
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 8 of file NetworkCommPort.cc. Referenced by isWriteable().
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 41 of file NetworkCommPort.h. Referenced by Subscription< T >::doUnfreeze(), ImageSubscription::plistValueChanged(), DepthSubscription::plistValueChanged(), and Subscription< T >::requestFrame().
Definition at line 83 of file NetworkCommPort.cc.
activates the sbuf based on the current configuration settings Implements CommPort. Definition at line 26 of file NetworkCommPort.cc. Referenced by plistValueChanged().
Implements PrimitiveListener. Reimplemented in Subscription< T >, ImageSubscription, DepthSubscription, Subscription< PListSensorDriver >, and Subscription< ImageStreamDriver >. Definition at line 111 of file NetworkCommPort.cc. Member Data Documentation
holds the class name, set via registration with the CommPort registry Definition at line 79 of file NetworkCommPort.h. Referenced by getClassName(). Definition at line 57 of file NetworkCommPort.h. Referenced by doOpen(), NetworkCommPort(), open(), and plistValueChanged(). Definition at line 73 of file NetworkCommPort.h. Referenced by doOpen(), open(), and plistValueChanged().
Definition at line 74 of file NetworkCommPort.h. Referenced by plistValueChanged().
Definition at line 52 of file NetworkCommPort.h. Referenced by close(), doOpen(), MirageDriver::MirageDriver(), MirageDriver::motionStarting(), MirageDriver::motionStopping(), NetworkCommPort(), open(), MirageDriver::openConnection(), plistValueChanged(), Subscription< ImageStreamDriver >::plistValueChanged(), MirageDriver::plistValueChanged(), and Subscription< ImageStreamDriver >::Subscription().
Definition at line 75 of file NetworkCommPort.h. Referenced by close(), isReadable(), open(), and ~NetworkCommPort().
Definition at line 53 of file NetworkCommPort.h. Referenced by close(), doOpen(), MirageDriver::MirageDriver(), MirageDriver::motionStarting(), MirageDriver::motionStopping(), NetworkCommPort(), open(), MirageDriver::openConnection(), plistValueChanged(), Subscription< ImageStreamDriver >::plistValueChanged(), MirageDriver::plistValueChanged(), and Subscription< ImageStreamDriver >::Subscription().
Definition at line 76 of file NetworkCommPort.h. Referenced by close(), isReadable(), open(), and plistValueChanged().
Definition at line 72 of file NetworkCommPort.h. Referenced by close(), connectionError(), doOpen(), getReadStreambuf(), getWriteStreambuf(), isReadable(), keepOpen(), NetworkCommPort(), open(), and plistValueChanged(). Definition at line 55 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 56 of file NetworkCommPort.h. Referenced by NetworkCommPort(), and plistValueChanged(). The documentation for this class was generated from the following files: |
Tekkotsu Hardware Abstraction Layer 5.1CVS |
Generated Mon May 9 05:01:41 2016 by Doxygen 1.6.3 |