… | |
… | |
422 | } |
422 | } |
423 | |
423 | |
424 | sbuf[0] = ((uint32) (msg->length ()) >> 8); |
424 | sbuf[0] = ((uint32) (msg->length ()) >> 8); |
425 | sbuf[1] = ((uint32) (msg->length ()) ); |
425 | sbuf[1] = ((uint32) (msg->length ()) ); |
426 | |
426 | |
427 | if (ns->status != Ns_Old) |
427 | //TODO: single write, or writev |
428 | ns->send (sbuf, 2); |
428 | ns->send (sbuf, 2); |
429 | |
|
|
430 | ns->send (msg->buf, msg->length ()); |
429 | ns->send (msg->buf, msg->length ()); |
431 | } |
430 | } |
432 | |
431 | |
433 | /****************************************************************************** |
432 | /****************************************************************************** |
434 | * |
433 | * |