ASN1C C/C++ Common Runtime  ASN1C v7.5.x
rtxStreamSocket.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2003-2021 Objective Systems, Inc.
3  *
4  * This software is furnished under a license and may be used and copied
5  * only in accordance with the terms of such license and with the
6  * inclusion of the above copyright notice. This software or any other
7  * copies thereof may not be provided or otherwise made available to any
8  * other person. No title to and ownership of the software is hereby
9  * transferred.
10  *
11  * The information in this software is subject to change without notice
12  * and should not be construed as a commitment by Objective Systems, Inc.
13  *
14  * PROPRIETARY NOTICE
15  *
16  * This software is an unpublished work subject to a confidentiality agreement
17  * and is protected by copyright and trade secret law. Unauthorized copying,
18  * redistribution or other use of this work is prohibited.
19  *
20  * The above notice of copyright on this source code product does not indicate
21  * any actual or intended publication of such source code.
22  *
23  *****************************************************************************/
27 #ifndef _RTXSTREAMSOCKET_H_
28 #define _RTXSTREAMSOCKET_H_
29 
30 #ifndef _OS_NOSOCKET
31 
32 #ifndef _NO_STREAM
33 
34 #include "rtxsrc/rtxStream.h"
35 #include "rtxsrc/rtxSocket.h"
36 
37 #ifdef __cplusplus
38 extern "C" {
39 #endif
40 
60 EXTERNRT int rtxStreamSocketAttach
61 (OSCTXT* pctxt, OSRTSOCKET socket, OSUINT16 flags);
62 
71 EXTERNRT int rtxStreamSocketClose (OSCTXT* pctxt);
72 
83 EXTERNRT int rtxStreamSocketCreateWriter
84 (OSCTXT* pctxt, const char* host, int port);
85 
97 EXTERNRT int rtxStreamSocketSetOwnership (OSCTXT* pctxt, OSBOOL ownSocket);
98 
110 EXTERNRT int rtxStreamSocketSetReadTimeout (OSCTXT* pctxt, OSUINT32 nsecs);
111 
112 #ifdef __cplusplus
113 }
114 #endif
115 
119 #endif /* _OS_NOSOCKET */
120 
121 #endif /* _NO_STREAM */
122 #endif /* _RTXSTREAMSOCKET_H_ */
int OSRTSOCKET
Definition: rtxSocket.h:65
int rtxStreamSocketAttach(OSCTXT *pctxt, OSRTSOCKET socket, OSUINT16 flags)
int rtxStreamSocketSetOwnership(OSCTXT *pctxt, OSBOOL ownSocket)
int rtxStreamSocketSetReadTimeout(OSCTXT *pctxt, OSUINT32 nsecs)
int rtxStreamSocketCreateWriter(OSCTXT *pctxt, const char *host, int port)
int rtxStreamSocketClose(OSCTXT *pctxt)
Definition: rtxContext.h:197