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 / usio.h < prev    next >
C/C++ Source or Header  |  2002-03-27  |  2KB  |  63 lines

  1. /* usio.h */
  2.  
  3. #ifndef _usio_h_
  4. #define _usio_h_ 1
  5.  
  6. #ifdef __cplusplus
  7. extern "C"
  8. {
  9. #endif    /* __cplusplus */
  10.  
  11. #define kUNewFailed (-9)
  12. #define kUBindFailed (-10)
  13. #define kUListenFailed (-11)
  14.  
  15. /* Don't change the following line -- it is modified by the Configure script. */
  16. #define UAccept UAcceptS
  17.  
  18. #ifndef UAccept
  19. #    if defined(NO_SIGNALS) || ( (defined(WIN32) || defined(_WINDOWS)) && !defined(__CYGWIN__) )
  20. #        define UAccept UAcceptS
  21. #    else
  22. #        define UAccept UAcceptA
  23. #    endif
  24. #endif
  25.  
  26. /* UAcceptA.c */
  27. int UAcceptA(int, struct sockaddr_un *const, int *, int);
  28.  
  29. /* UAcceptS.c */
  30. int UAcceptS(int, struct sockaddr_un *const, int *, int);
  31.  
  32. /* UBind.c */
  33. int UBind(int, const char *const, const int, const int);
  34. int UListen(int, int);
  35.  
  36. /* UConnect.c */
  37. int UConnect(int, const struct sockaddr_un *const, int, int);
  38.  
  39. /* UConnectByName.c */
  40. int UConnectByName(int, const char *const, const int);
  41.  
  42. /* UNew.c */
  43. int MakeSockAddrUn(struct sockaddr_un *, const char *const);
  44. int UNewStreamClient(void);
  45. int UNewDatagramClient(void);
  46. int UNewStreamServer(const char *const, const int, const int, int);
  47. int UNewDatagramServer(const char *const, const int, const int);
  48.  
  49. /* URecvfrom.c */
  50. int URecvfrom(int, char *const, size_t, int, struct sockaddr_un *const, int *, int);
  51.  
  52. /* USendto.c */
  53. int USendto(int, const char *const, size_t, int, const struct sockaddr_un *const, int, int);
  54.  
  55. /* USendtoByName.c */
  56. int USendtoByName(int, const char *const, size_t, int, const char *const, int);
  57.  
  58. #ifdef __cplusplus
  59. }
  60. #endif
  61.  
  62. #endif    /* _usio_h_ */
  63.