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);
205 virtual bool parse_command(
const EST_String command,
212 const Args &arguments);
214 virtual bool parse_result(
const EST_String resultString,
222 const Args &arguments,
virtual ~EST_Server()
Destroy the connection.
Mode
What type of server is this.
@ sm_client
Client end of the connection.
@ sm_interleaved
Answer requests from several clients, as requests arrive.
@ sm_threded
Multi-threaded (not implemented)
@ sm_sequential
Answer one client at a time.
@ sm_unknown
Bizarre state.
@ sm_fork
For off a process for each client.
int port(void) const
Port number.
const EST_String address(void) const
Dotted numeric IP address.
const EST_String name(void) const
Name of server.
bool connected(void)
Are we connected at the moment?
const EST_String hostname(void) const
Domain name of the server.
EST_Server(EST_String name, EST_String type)
Create a server connection by name, defaulting to "fringe", the default server name.
EST_connect_status connect(void)
Connect to the server.
const EST_String type(void) const
Type of server.
EST_Server(EST_String hostname, int port)
Create a server connection by explicitly saying where to connect to.
EST_connect_status disconnect(void)
Disconnect.
const EST_String servername(void) const
Domain name or IP number.