version 1.1, 2002/05/23 19:24:30 |
version 1.2, 2002/06/19 00:27:55 |
|
|
debug3("msg_send: type %d", type); |
debug3("msg_send: type %d", type); |
|
|
PUT_32BIT(buf, mlen + 1); |
PUT_32BIT(buf, mlen + 1); |
buf[4] = type; /* 1st byte of payload is mesg-type */ |
buf[4] = type; /* 1st byte of payload is mesg-type */ |
if (atomicio(write, fd, buf, sizeof(buf)) != sizeof(buf)) |
if (atomicio(write, fd, buf, sizeof(buf)) != sizeof(buf)) |
fatal("msg_send: write"); |
fatal("msg_send: write"); |
if (atomicio(write, fd, buffer_ptr(m), mlen) != mlen) |
if (atomicio(write, fd, buffer_ptr(m), mlen) != mlen) |