xale-db 1.0
minimal SQL engine, written in c++
Loading...
Searching...
No Matches
IListenerSocket.h
Go to the documentation of this file.
1#ifndef NET_I_LISTENER_SOCKET_H
2#define NET_I_LISTENER_SOCKET_H
3
4#include <string>
5
6namespace Xale::Net
7{
9 {
10 public:
11 virtual bool open(int port) = 0;
12 virtual int listen(std::string& buffer, size_t size) = 0;
13 virtual int respond(const std::string* data, size_t size) = 0; // should be SecurePaquet in the future
14 virtual void close() = 0;
15 };
16}
17
18#endif // NET_I_LISTENER_SOCKET_H
Definition IListenerSocket.h:9
virtual bool open(int port)=0
virtual void close()=0
virtual int respond(const std::string *data, size_t size)=0
virtual int listen(std::string &buffer, size_t size)=0
Definition IListenerSocket.h:7