#include <network.H>
Inherits FD_EVENT.
Inherited by ASCIInet, and MYnet.
Public Methods | |
Network () | |
virtual | ~Network () |
void | connect_to (NetStream *s) |
void | add_stream (NetStream *s) |
void | start (int port=0) |
void | start (char *host, int port) |
void | send_stream (ostrstream &) |
void | flush_data () |
void | subscribe (Cstr_ptr &tag) |
NetStream * | operator[] (int i) |
int | num_streams (void) const |
int | port (void) const |
Cstr_ptr & | name (void) const |
int | processing (void) const |
void | barrier () |
void | add_net_obs (Network_obs *o) |
void | rem_net_obs (Network_obs *o) |
void | notify_net (Network_obs::event e, NetStream *s) |
Protected Methods | |
void | die (const char *msg) |
NetStream * | wait_for_connect () |
char * | configure (int port, int backlog=NETWORK_SERVER_BACKLOG) |
void | accept_stream (void) |
void | remove_stream (NetStream *s) |
void | sample () |
virtual void | add_client (NetStream *) |
virtual void | interpret (NETenum, NetStream *) |
virtual NetStream * | new_stream (int port, const char *host) |
virtual NetStream * | new_stream (int fd, struct sockaddr_in *a) |
Protected Attributes | |
int | nStreams_ |
NetStream * | streams_ [256] |
str_list | tags_ |
int | port_ |
str_ptr | name_ |
bool | first_ |
int | _at_barrier |
ARRAY< Network_obs * > | _obs_list |
Friends | |
class | NetStream |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Reimplemented in MYnet. |
|
|
|
Reimplemented in ASCIInet. |
|
Reimplemented in ASCIInet. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Implements FD_EVENT. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|