#include <net.H>
Inheritance diagram for Network:


Public Member Functions | |
| Network (FD_MANAGER *m) | |
| virtual | ~Network () |
| void | connect_to (NetStream *s) |
| void | start (int port=0) |
| void | start (char *host, int port) |
| 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) |
| virtual void | reset () |
| virtual void | except () |
| int | fd () |
Protected Member Functions | |
| virtual void | sample () |
| virtual void | Unregister (NetStream *s) |
| virtual void | Register (NetStream *s) |
| virtual void | Register () |
| virtual int | interpret (NETenum code, NetStream *sender)=0 |
| virtual void | add_client (NetStream *cli) |
| virtual void | remove_stream (NetStream *s) |
| void | _die (const char *msg) |
| char * | configure (int port, int backlog=NETWORK_SERVER_BACKLOG) |
| void | add_stream (NetStream *s) |
| virtual void | accept_stream (void) |
| NetStream * | wait_for_connect () |
Protected Attributes | |
| FD_MANAGER * | _manager |
| int | nStreams_ |
| NetStream * | streams_ [256] |
| str_list | tags_ |
| int | port_ |
| str_ptr | name_ |
| int | first_ |
| ARRAY< Network_obs * > | _obs_list |
| int | _at_barrier |
| int | _fd |
Static Private Attributes | |
| static int | NETWORK_SERVER_BACKLOG = 5 |
Friends | |
| class | NetStream |
Definition at line 132 of file net.H.
|
|
|
|
|
|
|
|
Definition at line 1061 of file net.C. References name_. Referenced by start(), and wait_for_connect(). |
|
|
Definition at line 1040 of file net.C. References Network_obs::accept_str, add_client(), add_stream(), NetStream::name(), notify_net(), and wait_for_connect(). Referenced by sample(). |
|
|
Reimplemented in DISTRIB. Definition at line 1052 of file net.C. References NETflush, and NETtext. Referenced by accept_stream(). |
|
|
Definition at line 186 of file net.H. References _obs_list. |
|
|
Definition at line 156 of file net.H. References nStreams_, Register(), streams_, NetStream::subscribe(), and tags_. Referenced by accept_stream(), connect_to(), and NetStream::interpret(). |
|
|
Definition at line 984 of file net.C. References _at_barrier, _manager, FD_MANAGER::loop(), NETbarrier, NETflush, nStreams_, and streams_. |
|
||||||||||||
|
Definition at line 1072 of file net.C. References FD_EVENT::_fd, int(), name_, net_exception_handler(), NetStream::no_linger(), port_, and Register(). Referenced by start(). |
|
|
Definition at line 971 of file net.C. References add_stream(), FD_EVENT::fd(), Config::get_var_bool(), NETflush, NETidentify, and port_. Referenced by start(). |
|
|
|
|
|
Definition at line 48 of file tty.H. References FD_EVENT::_fd. Referenced by connect_to(), NetStream::interpret(), and WIN_MANAGER::tty_to_id::ready(). |
|
|
Definition at line 1140 of file net.C. References NetStream::flush_data(), nStreams_, and streams_. |
|
||||||||||||
|
Implemented in DISTRIB. Referenced by NetStream::interpret(). |
|
|
Definition at line 181 of file net.H. References name_. Referenced by DISTRIB::save(). |
|
||||||||||||
|
Definition at line 188 of file net.H. References _obs_list, and ARRAY< T >::num(). Referenced by accept_stream(), and remove_stream(). |
|
|
Definition at line 179 of file net.H. References nStreams_. Referenced by distrib_client(), and operator<<(). |
|
|
Definition at line 178 of file net.H. References streams_. |
|
|
Definition at line 180 of file net.H. References port_. |
|
|
Reimplemented in DISTRIB. Definition at line 995 of file net.C. References nStreams_, NetStream::processing(), and streams_. Referenced by DISTRIB::processing(). |
|
|
Definition at line 149 of file net.H. References _manager, and FD_MANAGER::add(). Referenced by add_stream(), and configure(). |
|
|
Definition at line 147 of file net.H. References _manager, FD_MANAGER::add(), and NetStream::add_network(). |
|
|
Definition at line 187 of file net.H. References _obs_list. |
|
|
Reimplemented in DISTRIB. Definition at line 1023 of file net.C. References notify_net(), nStreams_, Network_obs::remove_str, streams_, and Unregister(). Referenced by NetStream::interpret(), NetStream::remove_me(), DISTRIB::remove_stream(), and NetStream::sample(). |
|
|
Reimplemented in TabletMultimode. |
|
|
Implements FD_EVENT. Definition at line 145 of file net.H. References accept_stream(). |
|
||||||||||||
|
Definition at line 171 of file net.H. References connect_to(), NetStream, and start(). |
|
|
Definition at line 1124 of file net.C. References _die(), configure(), and first_. Referenced by distrib_client(), distrib_startnet(), and start(). |
|
|
Definition at line 175 of file net.H. References nStreams_, streams_, NetStream::subscribe(), and tags_. |
|
|
Definition at line 146 of file net.H. References _manager, and FD_MANAGER::rem(). Referenced by remove_stream(). |
|
|
Definition at line 1004 of file net.C. References _die(), FD_EVENT::_fd, and NetStream. Referenced by accept_stream(). |
|
|
Definition at line 133 of file net.H. Referenced by start(), and wait_for_connect(). |
|
|
Definition at line 162 of file net.H. Referenced by barrier(), and NetStream::interpret(). |
|
|
|
Definition at line 137 of file net.H. Referenced by barrier(), Register(), and Unregister(). |
|
|
Definition at line 161 of file net.H. Referenced by add_net_obs(), notify_net(), and rem_net_obs(). |
|
|
Definition at line 143 of file net.H. Referenced by NetStream::interpret(), and start(). |
|
|
Definition at line 142 of file net.H. Referenced by _die(), configure(), and name(). |
|
|
|
|
|
Definition at line 138 of file net.H. Referenced by add_stream(), barrier(), flush_data(), num_streams(), processing(), remove_stream(), and subscribe(). |
|
|
Definition at line 141 of file net.H. Referenced by configure(), connect_to(), and port(). |
|
|
Definition at line 139 of file net.H. Referenced by add_stream(), barrier(), flush_data(), NetStream::interpret(), operator[](), processing(), remove_stream(), and subscribe(). |
|
|
Definition at line 140 of file net.H. Referenced by add_stream(), and subscribe(). |
1.4.4