Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef _LOADBALANCESOCKET_H
- #define _LOADBALANCESOCKET_H
- #include <TcpSocket.h>
- #include "ServerGuardian.h"
- class LoadbalanceSocket : public TcpSocket
- {
- public:
- LoadbalanceSocket( ISocketHandler& , ServerGuardian* );
- ~LoadbalanceSocket();
- void OnConnect();
- void OnLine( const std::string& line );
- private:
- ServerGuardian *serverGuardian;
- };
- #endif // _LOADBALANCESOCKET_H
- In file included from ServerGuardian.h:18,
- LoadbalanceSocket.h:25: error: ‘ServerGuardian’ has not been declared
- LoadbalanceSocket.h:33: error: ISO C++ forbids declaration of ‘ServerGuardian’ with no type
- LoadbalanceSocket.h:33: error: expected ‘;’ before ‘*’ token
- make: *** [SocketFactory.o] Error 1
- #ifndef SERVERGUARDIAN_H
- #define SERVERGUARDIAN_H
- #include "ServerGuardian.h"
- #include <ListenSocket.h>
- #include <TcpSocket.h>
- #include "LoadbalanceSocket.h"
- #include "RelaySocket.h"
- #include "ServerSocket.h"
- #include "SocketFactory.h"
- #include <string>
- class ServerGuardian
- {
- public:
- ServerGuardian();
- ~ServerGuardian();
- void InitiateLoadbalanceSocket();
- void InitiateRelayListenSocket();
- void InitiateServerListenSocket();
- public:
- SocketFactory *socketFactory;
- std::list< std::string > loadbalanceAddresses;
- LoadbalanceSocket *loadbalanceSocket;
- RelaySocket *relaySocket;
- ListenSocket<ServerSocket> *serverListenSocket;
- ListenSocket<ServerSocket> *serverListenSocketSSL;
- };
- #endif /* SERVERGUARDIAN_H */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement