Lines 137-142
typedef enum {
Link Here
|
137 |
LINE_STAT, |
137 |
LINE_STAT, |
138 |
LINE_DATA, |
138 |
LINE_DATA, |
139 |
LINE_END, |
139 |
LINE_END, |
|
|
140 |
LINE_COMMENT |
140 |
} LINETYPE; |
141 |
} LINETYPE; |
141 |
|
142 |
|
142 |
typedef enum { |
143 |
typedef enum { |
Lines 366-371
read_assuan (int fd)
Link Here
|
366 |
recv_type = LINE_END; |
367 |
recv_type = LINE_END; |
367 |
p += 3; |
368 |
p += 3; |
368 |
} |
369 |
} |
|
|
370 |
else if (p[0] == '#') |
371 |
{ |
372 |
recv_type = LINE_COMMENT; |
373 |
} |
369 |
else |
374 |
else |
370 |
die ("invalid line type (%.5s)", p); |
375 |
die ("invalid line type (%.5s)", p); |
371 |
|
376 |
|
Lines 456-462
start_server (const char *pgmname)
Link Here
|
456 |
server_send_fd = wp[1]; |
461 |
server_send_fd = wp[1]; |
457 |
server_recv_fd = rp[0]; |
462 |
server_recv_fd = rp[0]; |
458 |
|
463 |
|
459 |
read_assuan (server_recv_fd); |
464 |
do { |
|
|
465 |
read_assuan (server_recv_fd); |
466 |
} while (recv_type == LINE_COMMENT); |
460 |
if (recv_type != LINE_OK) |
467 |
if (recv_type != LINE_OK) |
461 |
die ("no greating message"); |
468 |
die ("no greating message"); |
462 |
} |
469 |
} |