1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
| #ifndef __NET_MODE_SOCKET_H__
| #define __NET_MODE_SOCKET_H__
| #include "usg_common.h"
| #include "shm_mod_socket.h"
| #include "socket_io.h"
| class NetModSocket {
|
| private:
| int clientfd;
| rio_t rio;
| public:
| NetModSocket(const char *host, int port);
| ssize_t send(void *buf, size_t size);
| ~NetModSocket();
| };
|
|
|
| #endif
|
|