|
LCM .NET API
|
LCM provider for the tcp: URL. All messages are sent to a central "hub" process (that must be started separately), which will relay the messages to all other processes. TCPService is an implementation of the hub process. More...
Public Member Functions | |
| TCPProvider (LCM lcm, URLParser up) | |
| TCP provider constructor. | |
| virtual void | Publish (string channel, byte[] data, int offset, int length) |
| Publish a message synchronously. However, if the server is not available, it will return immediately. | |
| virtual void | Subscribe (string channel) |
| Subscribe method. | |
| void | Unsubscribe (string channel) |
| Unsubscribe method. | |
| virtual void | Close () |
| Close the TCP provider. | |
Properties | |
| System.Net.IPAddress | InetAddr [get] |
| int | InetPort [get] |
LCM provider for the tcp: URL. All messages are sent to a central "hub" process (that must be started separately), which will relay the messages to all other processes. TCPService is an implementation of the hub process.
The tcpq:// protocol is NOT suitable for real-time or high-bandwidth traffic. It is specifically designed for playing back a log file in a post-processing context (i.e., play back the log as fast as possible, but without dropping anything).
The .NET implementation is functionally equal to the Java version.
TCP provider constructor.
| lcm | LCM object |
| up | URL parser object |
|
inlinevirtual |
Close the TCP provider.
Implements LCM.LCM.Provider.
|
inlinevirtual |
Publish a message synchronously. However, if the server is not available, it will return immediately.
| channel | channel name |
| data | data byte array |
| offset | offset of the data to write |
| length | length of the data to write |
Implements LCM.LCM.Provider.
|
inlinevirtual |
|
inline |