Skip to content
Snippets Groups Projects
Commit 850ab9f6 authored by Per Hedbor's avatar Per Hedbor
Browse files

added a send() function to Prototocols.Line.simple

Rev: lib/modules/Protocols.pmod/Line.pmod:1.3
parent c4639638
No related branches found
No related tags found
No related merge requests found
/*
* $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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment