home *** CD-ROM | disk | FTP | other *** search
/ Resource for Source: C/C++ / Resource for Source - C-C++.iso / codelib1 / v_01_07 / 1n07034c < prev    next >
Encoding:
Text File  |  1995-11-01  |  279 b   |  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.