1 #ifndef CROMP_SERVER_CLASS
2 #define CROMP_SERVER_CLASS
39 class client_dropping_thread;
40 class connection_management_thread;
41 class cromp_client_list;
42 class cromp_client_record;
44 class cromp_transaction;
144 cromp_client_list *_clients;
150 int _accepting_threads;
151 client_dropping_thread *_dropper;
Provides a dynamically resizable ASCII character string.
Outcomes describe the state of completion for an operation.
A few common features used by both CROMP clients and servers.
Implements the client registry in a cromp-appropriate manner.
cromp_server(const sockets::internet_address &where, int accepting_threads=DEFAULT_ACCEPTERS(), bool instantaneous=true, int max_per_entity=DEFAULT_MAX_ENTITY_QUEUE)
basis::outcome enable_servers(bool encrypt, cromp_security *security=NULL_POINTER)
bool get_sizes(const octopi::octopus_entity &id, int &items, int &bytes)
DEFINE_CLASS_NAME("cromp_server")
octopi::infoton * wrap_infoton(octopi::infoton *&request, const octopi::octopus_entity &ent)
static sockets::internet_address any_address(int port)
basis::outcome send_to_client(const octopi::octopus_request_id &id, octopi::infoton *data)
basis::astring responses_text_form() const
bool instantaneous() const
sockets::internet_address location() const
void look_for_clients(processes::ethread &requester)
bool find_entity(const octopi::octopus_entity &id, sockets::internet_address &found)
basis::outcome get_from_client(const octopi::octopus_request_id &id, octopi::infoton *&data, int timeout)
static int DEFAULT_ACCEPTERS()
bool disconnect_entity(const octopi::octopus_entity &id)
returns true if the "id" can be found and disconnected.
Processes the encryption_infoton object for setting up an encrypted channel.
An infoton is an individual request parcel with accompanying information.
Provides rudimentary login services.
Provides a way of identifying users of an octopus object.
Identifies requests made on an octopus by users.
Provides a platform-independent object for adding threads to a program.
Manages a collection of threads.
this type of address describes a destination out on the internet.
Represents a point in time relative to the operating system startup time.
#define NULL_POINTER
The value representing a pointer to nothing.
const int DEFAULT_MAX_ENTITY_QUEUE
the default size we allow per each entity.