home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_01_07 / 1n07034c < prev    next >
Text File  |  1990-10-30  |  279b  |  18 lines

  1.  
  2. LISTING 3
  3.  
  4. /* routine to transmit len bytes
  5.    of data in a bufffer over a
  6.    network descriptor nd.
  7. */
  8.  
  9. void write_data(int nd, char *buf,
  10.                 unsigned int len)
  11. {
  12.     if (net_write(nd, buf, len, 0) < 0) {
  13.         pneterror("net_write");
  14.         return (0);
  15.     }
  16. }
  17.  
  18.