NCBI C++ ToolKit
ncbi_socket_unix.h
Go to the documentation of this file.

Go to the SVN repository for this file.

1 #ifndef CONNECT___NCBI_SOCKET_UNIX__H
2 #define CONNECT___NCBI_SOCKET_UNIX__H
3 
4 /* $Id: ncbi_socket_unix.h 55073 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 
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 
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 */
static uch flags
char data[12]
Definition: iconv.c:80
EIO_Status LSOCK_CreateUNIX(const char *path, unsigned short backlog, LSOCK *lsock, TSOCK_Flags flags)
Definition: ncbi_socket.c:6526
EIO_Status SOCK_CreateUNIX(const char *path, const STimeout *timeout, SOCK *sock, const void *data, size_t size, TSOCK_Flags flags)
Definition: ncbi_socket.c:6673
unsigned int TSOCK_Flags
bitwise "OR" of ESOCK_Flags
Definition: ncbi_socket.h:503
EIO_Status
I/O status.
Definition: ncbi_core.h:132
#define NCBI_XCONNECT_EXPORT
const struct ncbi::grid::netcache::search::fields::SIZE size
Timeout structure.
Definition: ncbi_types.h:76
Modified on Wed Apr 17 13:10:40 2024 by modify_doxy.py rev. 669887