Ocean
Client.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) Meta Platforms, Inc. and affiliates.
3  *
4  * This source code is licensed under the MIT license found in the
5  * LICENSE file in the root directory of this source tree.
6  */
7 
8 #ifndef FACEBOOK_NETWORK_CLIENT_H
9 #define FACEBOOK_NETWORK_CLIENT_H
10 
11 #include "ocean/network/Network.h"
12 #include "ocean/network/Socket.h"
13 
14 namespace Ocean
15 {
16 
17 namespace Network
18 {
19 
20 /**
21  * This class is the base class for all clients.
22  * @ingroup network
23  */
24 class OCEAN_NETWORK_EXPORT Client : virtual public Socket
25 {
26  protected:
27 
28  /**
29  * Creates a new client.
30  */
31  Client();
32 
33  /**
34  * Destructs a client.
35  */
36  ~Client() override;
37 
38  protected:
39 
40  /// The socket buffer of this client.
42 };
43 
44 }
45 
46 }
47 
48 #endif // FACEBOOK_NETWORK_CLIENT_H
This class is the base class for all clients.
Definition: Client.h:25
Buffer socketBuffer_
The socket buffer of this client.
Definition: Client.h:41
~Client() override
Destructs a client.
Client()
Creates a new client.
This class is the base class for all sockets.
Definition: Socket.h:31
std::vector< uint8_t > Buffer
Definition of a vector holding 8 bit values.
Definition: Socket.h:76
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15