ASN1C C/C++ Common Runtime
ASN1C v7.4.x
rtxsrc
OSRTSocketInputStream.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2003-2020 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
*****************************************************************************/
28
#ifndef _OSRTSOCKETINPUTSTREAM_H_
29
#define _OSRTSOCKETINPUTSTREAM_H_
30
31
#ifndef _OS_NOSOCKET
32
33
#include "
rtxsrc/OSRTSocket.h
"
34
#include "
rtxsrc/OSRTInputStream.h
"
35
40
class
EXTRTCLASS
OSRTSocketInputStream
:
public
OSRTInputStream
{
41
protected
:
42
OSRTSocket
mSocket
;
43
public
:
51
EXTRTMETHOD
OSRTSocketInputStream
(
OSRTSocket
& socket);
52
61
EXTRTMETHOD
OSRTSocketInputStream
62
(
OSRTContext
* pContext,
OSRTSocket
& socket);
63
77
EXTRTMETHOD
OSRTSocketInputStream
78
(
OSRTSOCKET
socket, OSBOOL ownership = FALSE);
79
94
OSRTSocketInputStream
(
OSRTContext
* pContext,
95
OSRTSOCKET
socket,
96
OSBOOL ownership = FALSE);
97
98
virtual
EXTRTMETHOD ~
OSRTSocketInputStream
() {}
99
107
virtual
OSBOOL
isA
(StreamID
id
)
const
{
108
return
id
== Socket;
109
}
110
111
} ;
112
113
#endif
/* _OS_NOSOCKET */
114
115
#endif
/* _OSRTSOCKETINPUTSTREAM_H_ */
OSRTSocket.h
OSRTSOCKET
int OSRTSOCKET
Definition:
rtxSocket.h:65
OSRTSocketInputStream::isA
virtual OSBOOL isA(StreamID id) const
Definition:
OSRTSocketInputStream.h:107
OSRTSocketInputStream::mSocket
OSRTSocket mSocket
a socket
Definition:
OSRTSocketInputStream.h:42
OSRTInputStream.h
OSRTContext
Definition:
OSRTContext.h:64
OSRTSocket
Definition:
OSRTSocket.h:50
OSRTSocketInputStream
Definition:
OSRTSocketInputStream.h:40
OSRTInputStream
Definition:
OSRTInputStream.h:41