home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 3 / TheARMClub_PDCD3.iso / hensa / unix / unixlib_1 / !UnixLib37_netlib_netlib_c_sendto < prev    next >
Encoding:
Text File  |  1996-07-28  |  585 b   |  25 lines

  1. /****************************************************************************
  2.  *
  3.  * $Source$
  4.  * $Date$
  5.  * $Revision$
  6.  * $State$
  7.  * $Author$
  8.  *
  9.  * $Log$
  10.  * (c) Copyright 1995 Sergio Monesi
  11.  ***************************************************************************/
  12.  
  13. static const char rcs_id[] = "$Id$";
  14.  
  15. #include <sys/unix.h>
  16. #include <sys/socket.h>
  17.  
  18. int
  19. sendto (int s, char *msg, int len, int flags,
  20.     struct sockaddr *to, int tolen)
  21. {
  22. /*  printf("U! sendto: fd=%d, realsocket=%d\n",s,(__u->file+s)->r[0]); */
  23.   return (_sendto ((__u->file + s)->r[0], msg, len, flags, to, tolen));
  24. }
  25.