FAST.Framework  1.0.0
FClient.h
1 /******************************************************************************
2 **
3 ** FAST.Framework
4 **
5 ** Created: 2023-10-11
6 ** Author: Boris Fast
7 ** Mail: support@fast-framework.com
8 **
9 ******************************************************************************/
10 
11 #ifndef FCLIENT_H
12 #define FCLIENT_H
13 
14 using namespace std;
15 
16 #include "FObject.h"
17 
21 class FClient : public FObject
22 {
23  public:
24  FClient(const FClient&) = delete;
25  FClient(FClient&&) = delete;
26  FClient() = delete;
27  FClient& operator=(const FClient&) = delete;
28 
29  FClient(const FString& server, UInt port);
30  virtual ~FClient();
31 
32  Boolean Connect();
33  FString Read() const;
34  UInt Write(const FString& string) const;
35  Boolean Close() const;
36 
37  const type_info& GetType() override;
38  FString GetName() const override;
39 
40  private:
41  UInt port;
42  UInt socket;
43  FString* server;
44 };
45 
46 #endif // FCLIENT_H
Definition: FClient.h:22
FClient & operator=(const FClient &)=delete
Delete copy operator.
FClient(FClient &&)=delete
Delete copy constructor.
FClient()=delete
Delete copy constructor.
FClient(const FClient &)=delete
Delete copy constructor.
Definition: FObject.h:50
Definition: FString.h:22