8 #ifndef DtForwarderGroup_H_
9 #define DtForwarderGroup_H_
17 #include <vlutil/vlString.h>
39 const MAKRti::DtString& host,
unsigned int port,
DtTcpMsgSocket* socket,
40 const MAKRti::DtString& url,
bool isPortal ) :
47 myAcceptRemoteConnection( isPortal )
71 virtual bool addForwarderToGroup(
const MAKRti::DtString& fwderName,
72 const MAKRti::DtInetAddr& addr,
const MAKRti::DtString& host,
73 int connectPort = -1,
const MAKRti::DtString& url =
NULL,
74 bool isPortal =
false);
84 virtual unsigned int connectToPortal(
const MAKRti::DtString& fwderName =
NULL,
85 bool ignorePortalFlag =
false );
87 bool ignorePortalFlag =
false );
94 virtual bool connectToForwarder(
const MAKRti::DtString& fwderName );
101 virtual void disconnectFromGroup();
105 virtual bool removeForwarder(
const MAKRti::DtString& fwderName );
109 virtual void dissolve();
115 virtual bool isMember(
const MAKRti::DtString& fwderName );
132 virtual void setDefaultPort(
int port );
141 bool isPortal =
false);
142 virtual void setForwarderInfo(
DtTcpMsgSocket* socket,
const MAKRti::DtString& url =
NULL,
143 bool isPortal =
false);
149 DtInetAddrAndPort getForwarderAddrByName(
const MAKRti::DtString& fwderName )
const;
154 virtual bool forwarderIsAPortal(
const MAKRti::DtString& fwderName )
const;
157 virtual unsigned int portalCount()
const;
160 virtual unsigned int connectionCount()
const;
163 virtual unsigned int memberCount()
const;
166 virtual const MAKRti::DtString& groupName()
const;
177 virtual bool updateNextAvailablePortal();
189 static void setCreatorFunction( DtForwarderGroupCreatorFcn creator );