diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1998-09-07 04:49:01 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1998-09-07 04:49:01 +0000 |
commit | dceee5506c4b747d6c3801d3f1649f9305dff2d5 (patch) | |
tree | c487fc2eb5a13824b27c6983a5620f90c4442fe8 /apps/drwho/SMR_Server.h | |
parent | 027290ebc37d5dd85440815f3d5840cd83b51b7a (diff) | |
download | ATCD-dceee5506c4b747d6c3801d3f1649f9305dff2d5.tar.gz |
*** empty log message ***
Diffstat (limited to 'apps/drwho/SMR_Server.h')
-rw-r--r-- | apps/drwho/SMR_Server.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/apps/drwho/SMR_Server.h b/apps/drwho/SMR_Server.h new file mode 100644 index 00000000000..29c4281af7d --- /dev/null +++ b/apps/drwho/SMR_Server.h @@ -0,0 +1,28 @@ +/* -*- C++ -*- */ +// $Id$ + +#ifndef _SMR_SERVER_H +#define _SMR_SERVER_H + +#include "SM_Server.h" + +class SMR_Server : public SM_Server +{ +public: + SMR_Server (short port_number); + ~SMR_Server (void); +}; + +#ifdef __OPTIMIZE__ +inline +SMR_Server::SMR_Server (short port_number) +{ + if (CM_Server::open (port_number) < 0) + perror (Options::program_name), exit (1); +} + +inline +SMR_Server::~SMR_Server (void) +{} +#endif /* __OPTIMIZE__ */ +#endif /* _SMR_SERVER_H */ |