Skip to content
Snippets Groups Projects
Commit 41a3db08 authored by Niels Möller's avatar Niels Möller
Browse files

renamed get_line ->read_line. Other bugfixes

Rev: lib/modules/Protocols.pmod/Line.pmod:1.8
parent aac638de
No related branches found
No related tags found
No related merge requests found
/* /*
* $Id: Line.pmod,v 1.7 1998/10/16 15:34:58 grubba Exp $ * $Id: Line.pmod,v 1.8 1998/10/16 17:14:19 nisse Exp $
* *
* Line-buffered protocol handling. * Line-buffered protocol handling.
* *
...@@ -82,7 +82,7 @@ class simple ...@@ -82,7 +82,7 @@ class simple
static string read_buffer = ""; static string read_buffer = "";
static string get_line() static string read_line()
{ {
int i = search(read_buffer, "\r\n"); int i = search(read_buffer, "\r\n");
if (i == -1) { if (i == -1) {
...@@ -102,7 +102,7 @@ class simple ...@@ -102,7 +102,7 @@ class simple
string line; string line;
while( (line = get_line()) ) while( (line = read_line()) )
_handle_command(line); _handle_command(line);
} }
...@@ -220,6 +220,8 @@ class imap_style ...@@ -220,6 +220,8 @@ class imap_style
inherit simple; inherit simple;
function handle_literal = 0; function handle_literal = 0;
function handle_line = 0;
int literal_length; int literal_length;
#if 0 #if 0
...@@ -245,9 +247,9 @@ class imap_style ...@@ -245,9 +247,9 @@ class imap_style
handler(literal); handler(literal);
} else { } else {
string line = get_line(); string line = read_line();
if (line) if (line)
handle_command(line); handle_line(line);
else else
break; break;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment