From 850ab9f68226944eff7d3e01f78d3c403e762e4d Mon Sep 17 00:00:00 2001 From: Per Hedbor <ph@opera.com> Date: Mon, 28 Sep 1998 03:17:07 +0200 Subject: [PATCH] added a send() function to Prototocols.Line.simple Rev: lib/modules/Protocols.pmod/Line.pmod:1.3 --- lib/modules/Protocols.pmod/Line.pmod | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/modules/Protocols.pmod/Line.pmod b/lib/modules/Protocols.pmod/Line.pmod index 78f9f36d96..b4ecf36b39 100644 --- a/lib/modules/Protocols.pmod/Line.pmod +++ b/lib/modules/Protocols.pmod/Line.pmod @@ -1,5 +1,5 @@ /* - * $Id: Line.pmod,v 1.2 1998/09/12 12:53:14 grubba Exp $ + * $Id: Line.pmod,v 1.3 1998/09/28 01:17:07 per Exp $ * * Line-buffered protocol handling. * @@ -16,6 +16,12 @@ class simple static int timeout; // Idle time before timeout. static int timeout_time; // Time at which next timeout will occur. + static void send(string s) + { + send_q->put(s); + con->set_write_callback(write_callback); + } + static void do_timeout() { if (con) { -- GitLab