home *** CD-ROM | disk | FTP | other *** search
/ ftp.ncftp.com / ftp.ncftp.com.zip / ftp.ncftp.com / libncftp / older_versions / libncftp-3.1.5-src.tar.gz / libncftp-3.1.5-src.tar / libncftp-3.1.5 / sio / USendtoByName.c < prev    next >
C/C++ Source or Header  |  2001-11-19  |  386b  |  17 lines

  1. #include "syshdrs.h"
  2. #ifdef PRAGMA_HDRSTOP
  3. #    pragma hdrstop
  4. #endif
  5.  
  6. int
  7. USendtoByName(int sfd, const char *const buf, size_t size, int fl, const char *const toAddrStr, int tlen)
  8. {
  9.     struct sockaddr_un toAddr;
  10.     int ualen;
  11.     int result;
  12.  
  13.     ualen = (int) MakeSockAddrUn(&toAddr, toAddrStr);
  14.     result = USendto(sfd, buf, size, fl, &toAddr, ualen, tlen);
  15.     return (result);
  16. }    /* USendtoByName */
  17.