libixp

git clone git://oldgit.suckless.org/libixp/
Log | Files | Refs | LICENSE

ixp_sendmsg.3 (938B)


      1 .TH "IXP_SENDMSG" 3 "2010 Jun" "libixp Manual"
      2 
      3 .SH NAME
      4 .P
      5 ixp_sendmsg, ixp_recvmsg
      6 
      7 .SH SYNOPSIS
      8 .nf
      9   #include <ixp.h>
     10   
     11   uint ixp_sendmsg(int fd, IxpMsg *msg);
     12   
     13   uint ixp_recvmsg(int fd, IxpMsg *msg);
     14 .fi
     15 
     16 .SH DESCRIPTION
     17 .P
     18 These functions read and write messages to and from the given
     19 file descriptors.
     20 
     21 .P
     22 ixp_sendmsg writes the data at ImsgR\->pos upto ImsgR\->end.
     23 If the call returns non\-zero, all data is assured to have
     24 been written.
     25 
     26 .P
     27 ixp_recvmsg first reads a 32 bit, little\-endian length from
     28 IfdR and then reads a message of that length (including the
     29 4 byte size specifier) into the buffer at ImsgR\->data, so
     30 long as the size is less than ImsgR\->size.
     31 
     32 .SH RETURN VALUE
     33 .P
     34 These functions return the number of bytes read or
     35 written, or 0 on error. Errors are stored in
     36 \fBixp_errbuf(3)\fR.
     37 
     38 
     39 .\" man code generated by txt2tags 2.5 (http://txt2tags.sf.net)
     40 .\" cmdline: txt2tags -o- ixp_sendmsg.man3
     41