… | |
… | |
351 | } |
351 | } |
352 | else |
352 | else |
353 | { |
353 | { |
354 | inbuf_len += amount; |
354 | inbuf_len += amount; |
355 | |
355 | |
356 | cmd_ev.start (); |
|
|
357 | } |
|
|
358 | } |
|
|
359 | } |
|
|
360 | |
|
|
361 | // called whenever we have additional commands to process |
|
|
362 | void |
|
|
363 | client::cmd_cb (iw &w) |
|
|
364 | { |
|
|
365 | if (handle_packet ()) |
356 | if (handle_packet ()) |
366 | w.start (); |
357 | { |
367 | else |
358 | while (handle_packet ()) |
368 | flush (); |
359 | ; |
|
|
360 | |
|
|
361 | flush (); |
|
|
362 | } |
|
|
363 | } |
|
|
364 | } |
369 | } |
365 | } |
370 | |
366 | |
371 | /******************************************************************************* |
367 | /******************************************************************************* |
372 | * |
368 | * |
373 | * Start of write related routines. |
369 | * Start of write related routines. |