summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsc2000-12-30 22:40:50 +0000
committersc2000-12-30 22:40:50 +0000
commitc5145a7ea08d606db251360b8722778403205c30 (patch)
tree257ef8f115fd31e3bbb4994e2c35ee4b55e72493
parentf656ec8b1557b3e413d7b69deac636e63c7a4f6b (diff)
downloadivy-league-c5145a7ea08d606db251360b8722778403205c30.zip
ivy-league-c5145a7ea08d606db251360b8722778403205c30.tar.gz
ivy-league-c5145a7ea08d606db251360b8722778403205c30.tar.bz2
ivy-league-c5145a7ea08d606db251360b8722778403205c30.tar.xz
Updated for use with multiplexers
Moved a part to TextService.h
-rw-r--r--comm/OLD/TextStream.h46
1 files changed, 1 insertions, 45 deletions
diff --git a/comm/OLD/TextStream.h b/comm/OLD/TextStream.h
index 59a0162..ce6fec9 100644
--- a/comm/OLD/TextStream.h
+++ b/comm/OLD/TextStream.h
@@ -62,7 +62,7 @@ virtual cmd_res Execute (const UchTextLine&) = 0;
public:
- UchTextStream ();
+ UchTextStream (UchAddress* = 0, UchAddress* = 0);
~UchTextStream ();
// UchTextStream (const UchTextStream&);
// UchChannel* Copy () const;
@@ -72,50 +72,6 @@ virtual void Quit (); // 'quit' request
void Send (const UchTextLine&, bool = false);
};
-class UchTextService : public UchTextStream {
-friend class UchServiceStarter;
-
-public:
-enum status {
- isUnavailable, // address not found in port server
- isError, // could not init connection
- isRunning, // connection established
- isLost // no connection (auto-starting)
- };
-
-protected:
- status StatusFlag;
- UchServiceStarter* Starter;
- bool Closed;
- CcuString User;
- CcuString Service;
- CcuString Host;
-
- void Closing (bool);
- void Flush ();
- status Restart ();
- void AutoStart (int = -1, int = -1);
-virtual void LostServer ();
-virtual void GotServer ();
-virtual void AbandonRestart ();
- cmd_res Execute (const UchTextLine&);
-
-public:
- UchTextService (UchBaseMultiplexer&, const char*, const char* = 0);
- UchTextService ();
- ~UchTextService ();
- void Init (UchBaseMultiplexer&, const char*, const char* = 0);
- status GetStatus () { return StatusFlag; }
- int GetRetryTime ();
- int GetMaxRetries ();
- void Close (); // close after output buffer emptied
- void CloseNow (); // close now
-
-};
-
-// the simplest interface to a server.
-extern bool TellServer (const char*, const char*, const char*);
-
class UchTextWord {
protected:
const char* Sval;