|
|
||||||
|
iop_simplenet.h
Go to the documentation of this file.
157 virtual void DoWrite(TokenWriter& rTw,const std::string& rLabel="", const Type* pContext=0) const;
233 virtual void DoWrite(TokenWriter& rTw,const std::string& rLabel="", const Type* pContext=0) const;
299 * a number of <em>nodes</em>, each identified by its <em>node name</em>. In the current implementation,
300 * each node knows about the entire network ie knows about all other nodes. Each node plays two roles:
304 * In their server role, each node is configured to listen on its <em>server port</em> for incomming
305 * TCP connections. When a client (i.e. some other node in client role) connects to the TCP port, the server
306 * replies to a simple command set in order to allow the client to subscribe to the nodes output events.
307 * When the application executes an output event on the node, this is notified to all connected clients and
308 * the clients will interpret the event as an input reading. Vice versa, the each node itself has the
309 * role of a client and subscribes to relevant output events served by other nodes in their server role.
313 * The protocol for commands and notification is libFAUDES-token based and can be inspected eg via nc
342 * <td> subset of available events (e.g. <tt><Subscribed> Ev_2 Ev_7 Ev_9 </Subscribed></tt>)</td>
347 * incomming messages and issues event notifications to any relevant events; and, (2) a TCP client
358 * underlying name resolution by DNS services, but node configuration itself refers to simple-net node names
359 * only. Since each node knows about the names of all participating nodes, each node will know when
365 * relevant subset explicitly by setting the appropriate broadcast address, e.g. 192.168.2.255:40000.
553 * It starts the background thread for incomming connections and tries to connect to relevant servers.
605 virtual void DoReadPreface(TokenReader& rTr, const std::string& rLabel = "", const Type* pContext=0);
623 virtual void DoWritePreface(TokenWriter& rTw, const std::string& rLabel="", const Type* pContext=0) const;
#define FAUDES_TYPE_DECLARATION(ftype, ctype, cbase) faudes type declaration macro Definition: cfl_types.h:867 Attribute for the configuration of a input or output mapping. Definition: iop_vdevice.h:68 Configuration of a networked input or output. Definition: iop_simplenet.h:247 const AttributeSimplenetOutput * Outputp(void) const Get output mapping. Definition: iop_simplenet.h:266 Configuration of a network input mapping. Definition: iop_simplenet.h:171 virtual bool IsDefault(void) const Test for default value (always, since we have no data) Definition: iop_simplenet.h:181 Configuration of a network output mapping. Definition: iop_simplenet.h:96 virtual bool IsDefault(void) const Test for default value (always, since we have no data) Definition: iop_simplenet.h:106 A TokenReader reads sequential tokens from a file or string. Definition: cfl_tokenreader.h:64 A TokenWriter writes sequential tokens to a file, a string or stdout. Definition: cfl_tokenwriter.h:52 Base class of all libFAUDES objects that participate in the run-time interface. Definition: cfl_types.h:239 An nDevice implements networked IO via a simple TCP/IP protocol. Definition: iop_simplenet.h:431 friend void * NDeviceServer(void *) SimplenetAddress mListenAddress Simplenet: address of my server incl port (localhost:40000) Definition: iop_simplenet.h:633 TaNameSet< AttributeSimplenetEvent > * pConfiguration Overall configuration (with actual type) Definition: iop_simplenet.h:627 std::map< std::string, EventSet > mInputSubscriptions Compiled data: map subscriptions. Definition: iop_simplenet.h:645 std::map< std::string, ServerState > mInputServerStates Background: connection states to event servers (by node name) Definition: iop_simplenet.h:683 int mBroadcastSocket Background: udp broadcast socket (background only) Definition: iop_simplenet.h:660 std::map< int, ClientState > mOutputClientStates Background: map sockets to connection states (shared) Definition: iop_simplenet.h:671 SimplenetAddress mEffectiveListenAddress Simplenet: effective address of my server port. Definition: iop_simplenet.h:639 friend void * NDeviceReply(void *) SimplenetAddress mBroadcastAddress Simplenet: address for udp broadcast (255.255.255.255:40000. Definition: iop_simplenet.h:636 std::map< std::string, std::string > mNetworkNodes Simplenet: list of nodes in this network incl default addresses. Definition: iop_simplenet.h:642 int mListenSocket Background: server socket to listen (background only) Definition: iop_simplenet.h:657 Virtual base class to define the interface for event io. Definition: iop_vdevice.h:261 Includes all libFAUDES headers, no plugins. Virtual device for interface definition Background: state of a connection to a client (shared) Definition: iop_simplenet.h:663 Background: state of a connection to an event server (shared) Definition: iop_simplenet.h:674 SimplenetAddress mDefaultAddress Definition: iop_simplenet.h:676 libFAUDES 2.32f --- 2024.12.22 --- c++ api documentaion by doxygen |