|
|
||||||
|
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) Definition: cfl_types.h:872 Definition: iop_vdevice.h:68 void DoAssign(const AttributeDeviceEvent &rSrcAttr) Definition: iop_vdevice.cpp:90 const AttributeSimplenetOutput * Outputp(void) const Definition: iop_simplenet.h:266 const AttributeSimplenetInput * Inputp(void) const Definition: iop_simplenet.h:270 void DoAssign(const AttributeSimplenetEvent &rSrc) Definition: iop_simplenet.h:276 virtual bool IsDefault(void) const Definition: iop_simplenet.h:260 virtual bool IsDefault(void) const Definition: iop_simplenet.h:181 void DoAssign(const AttributeSimplenetInput &rSrcAttr) Definition: iop_simplenet.h:193 AttributeSimplenetInput(void) Definition: iop_simplenet.h:178 AttributeSimplenetOutput(void) Definition: iop_simplenet.h:103 virtual bool IsDefault(void) const Definition: iop_simplenet.h:106 void DoAssign(const AttributeSimplenetOutput &rSrcAttr) Definition: iop_simplenet.h:118 Definition: cfl_attributes.h:52 Definition: cfl_nameset.h:69 Definition: iop_simplenet.h:31 Definition: cfl_nameset.h:566 Definition: cfl_tokenreader.h:64 Definition: cfl_tokenwriter.h:52 Definition: cfl_types.h:239 Definition: iop_simplenet.h:431 friend void * NDeviceServer(void *) TaNameSet< AttributeSimplenetEvent > * pConfiguration Definition: iop_simplenet.h:627 std::map< std::string, EventSet > mInputSubscriptions Definition: iop_simplenet.h:645 std::map< std::string, ServerState > mInputServerStates Definition: iop_simplenet.h:683 std::map< int, ClientState > mOutputClientStates Definition: iop_simplenet.h:671 SimplenetAddress mEffectiveListenAddress Definition: iop_simplenet.h:639 friend void * NDeviceReply(void *) std::map< std::string, std::string > mNetworkNodes Definition: iop_simplenet.h:642 Definition: iop_vdevice.h:261 Definition: cfl_agenerator.h:43 Definition: iop_simplenet.h:663 Definition: iop_simplenet.h:674 SimplenetAddress mDefaultAddress Definition: iop_simplenet.h:676 libFAUDES 2.33c --- 2025.05.15 --- c++ api documentaion by doxygen |