35 #ifndef __EST_SERVER_H__
36 #define __EST_SERVER_H__
38 #include "EST_Features.h"
39 #include "EST_ServiceTable.h"
100 virtual void process(
void)=0;
127 void init(ostream *trace);
148 void return_value(
BufferedSocket &socket, Result &res,
bool last);
191 int port(
void)
const;
198 EST_connect_status
connect(
void);
205 virtual bool parse_command(
const EST_String command,
212 const Args &arguments);
214 virtual bool parse_result(
const EST_String resultString,
217 virtual EST_String build_result(
const Result &res);
222 const Args &arguments,
Answer one client at a time.
EST_Server(EST_String name, EST_String type)
Create a server connection by name, defaulting to "fringe", the default server name.
For off a process for each client.
const EST_String type(void) const
Type of server.
const EST_String address(void) const
Dotted numeric IP address.
int port(void) const
Port number.
const EST_String name(void) const
Name of server.
const EST_String servername(void) const
Domain name or IP number.
Mode
What type of server is this.
Answer requests from several clients, as requests arrive.
EST_connect_status connect(void)
Connect to the server.
bool connected(void)
Are we connected at the moment?
virtual ~EST_Server()
Destroy the connection.
Multi-threaded (not implemented)
Client end of the connection.
EST_connect_status disconnect(void)
Disconnect.
const EST_String hostname(void) const
Domain name of the server.