1 #ifndef CONNECT___NCBI_SOCKET_UNIX__H
2 #define CONNECT___NCBI_SOCKET_UNIX__H
3 
4 /* $Id: ncbi_socket_unix.h 368793 2012-07-12 15:31:13Z lavr $
5  * ===========================================================================
6  *
7  *                            PUBLIC DOMAIN NOTICE
8  *               National Center for Biotechnology Information
9  *
10  *  This software/database is a "United States Government Work" under the
11  *  terms of the United States Copyright Act.  It was written as part of
12  *  the author's official duties as a United States Government employee and
13  *  thus cannot be copyrighted.  This software/database is freely available
14  *  to the public for use. The National Library of Medicine and the U.S.
15  *  Government have not placed any restriction on its use or reproduction.
16  *
17  *  Although all reasonable efforts have been taken to ensure the accuracy
18  *  and reliability of the software and data, the NLM and the U.S.
19  *  Government do not and cannot warrant the performance or results that
20  *  may be obtained by using this software or data. The NLM and the U.S.
21  *  Government disclaim all warranties, express or implied, including
22  *  warranties of performance, merchantability or fitness for any particular
23  *  purpose.
24  *
25  *  Please cite the author in any work or product based on this material.
26  *
27  * ===========================================================================
28  *
29  * Author:  Anton Lavrentiev
30  *
31  * File Description:
32  *   TCP/IP socket API extension for UNIX
33  *
34  */
35 
36 #include <connect/ncbi_socket.h>
37 
38 
39 /** @addtogroup Sockets
40  *
41  * @{
42  */
43 
44 
45 #ifdef __cplusplus
46 extern "C" {
47 #endif
48 
49 
50 extern NCBI_XCONNECT_EXPORT EIO_Status LSOCK_CreateUNIX
51 (const char*     path,     /* [in]  path of the named socket to create       */
52  unsigned short  backlog,  /* [in]  maximal # of pending connections         */
53  LSOCK*          lsock,    /* [out] handle of the created listening socket   */
54  TSOCK_Flags     flags     /* [in]  socket properties                        */
55  );
56 
57 
58 extern NCBI_XCONNECT_EXPORT EIO_Status SOCK_CreateUNIX
59 (const char*     path,     /* [in]  path of the UNIX socket to connect to    */
60  const STimeout* timeout,  /* [in]  connection timeout (infinite if NULL)    */
61  SOCK*           sock,     /* [out] handle of the created socket             */
62  const void*     data,     /* [in]  initial output data block (may be NULL)  */
63  size_t          size,     /* [in]  size of the initial data block (may be 0)*/
64  TSOCK_Flags     flags     /* [in]  socket properties                        */
65  );
66 
67 
68 #ifdef __cplusplus
69 } /* extern "C" */
70 #endif
71 
72 
73 /* @} */
74 
75 #endif /* CONNECT___NCBI_SOCKET_UNIX__H */
76