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 / UConnectByName.c < prev    next >
C/C++ Source or Header  |  2001-11-19  |  339b  |  17 lines

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