version 1.5, 2004/12/06 21:03:12 |
version 1.6, 2004/12/07 17:10:56 |
|
|
* |
* |
* Pass a file descriptor <fd> to the other endpoint of the socket <sock>. |
* Pass a file descriptor <fd> to the other endpoint of the socket <sock>. |
*/ |
*/ |
|
|
int |
int |
cvsd_sendfd(int sock, int fd) |
cvsd_sendfd(int sock, int fd) |
{ |
{ |
|
|
* Receive a file descriptor over the socket <sock>. Returns the descriptor |
* Receive a file descriptor over the socket <sock>. Returns the descriptor |
* on success, or -1 on failure. |
* on success, or -1 on failure. |
*/ |
*/ |
|
|
int |
int |
cvsd_recvfd(int sock) |
cvsd_recvfd(int sock) |
{ |
{ |
|
|
* <fd>. |
* <fd>. |
* Returns 0 on success, or -1 on failure. |
* Returns 0 on success, or -1 on failure. |
*/ |
*/ |
|
|
int |
int |
cvsd_sendmsg(int fd, u_int type, const void *data, size_t len) |
cvsd_sendmsg(int fd, u_int type, const void *data, size_t len) |
{ |
{ |
|
|
* Returns 1 if a message was read, 0 if the remote end closed the message |
* Returns 1 if a message was read, 0 if the remote end closed the message |
* socket and no further messages can be read, or -1 on failure. |
* socket and no further messages can be read, or -1 on failure. |
*/ |
*/ |
|
|
int |
int |
cvsd_recvmsg(int fd, u_int *type, void *dst, size_t *len) |
cvsd_recvmsg(int fd, u_int *type, void *dst, size_t *len) |
{ |
{ |