In file ../include/EST_Server.h:

## class EST_Server

> Client-server interface.

## Inheritance:

### Public Classes

  enum | Mode What type of server is this

### Public Methods

  | Client end constructors.
  | EST_Server (EST_String name, EST_String type) Create a server connection by name, defaulting to "fringe", the default server name
  | EST_Server (EST_String hostname, int port) Create a server connection by explicitly saying where to connect to
  virtual | ~EST_Server () Destroy the connection
  | information about the server.
  const EST_String | name (void) const Name of server
  const EST_String | type (void) const Type of server
  const EST_String | hostname (void) const Domain name of the server
  const EST_String | address (void) const Dotted numeric IP address
  const EST_String | servername (void) const Domain name or IP number
  int | port (void) const Port number
  | connection management
  EST_connect_status | connect (void) Connect to the server
  bool | connected (void) Are we connected at the moment?
  EST_connect_status | disconnect (void) Disconnect

## Documentation

> Client-server interface.

> An EST_Server object represents a server, it can be at either end of a network connection. That is, a server process has an EST_Server object representing it's wait-dispatch-answer loop, while a client process has an EST_Server object which represents the server process.

`enum Mode`
  What type of server is this

  `sm_unknown`
    Bizzare state

  `sm_client`
    Client end of the connetion

  `sm_sequential`
    Answer one client at a time

  `sm_interleaved`
    Answer requests from several clients, as requests arrive

  `sm_fork`
    For off a process for each client

  `sm_threded`
    Muti-threaded (not implemented)

`Client end constructors.`

`EST_Server(EST_String name, EST_String type)`
  Create a server connection by name, defaulting to "fringe", the default server name

`EST_Server(EST_String hostname, int port)`
  Create a server connection by explicitly saying where to connect to

`Server end constructors`

`virtual ~EST_Server()`
  Destroy the connection

`information about the server.`

`const EST_String name(void) const`
  Name of server

`const EST_String type(void) const`
  Type of server

`const EST_String hostname(void) const`
  Domain name of the server

`const EST_String address(void) const`
  Dotted numeric IP address

`const EST_String servername(void) const`
  Domain name or IP number

`int port(void) const`
  Port number

`connection management`

`EST_connect_status connect(void)`
  Connect to the server

`bool connected(void)`
  Are we connected at the moment?

`EST_connect_status disconnect(void)`
  Disconnect

Direct child classes:
  EST_FringeServer

Author:
  Richard Caley <rjc@cstr.ed.ac.uk>
Version:

Alphabetic index HTML hierarchy of classes or Java

This page is part of the Edinburgh Speech Tools Library documentation
Copyright University of Edinburgh 1997
Contact: speech_tools@cstr.ed.ac.uk