1 /*---------------------------------------------------------------------------*\
5 * Copyright (C) 2000-2002 by the OpenSG Forum *
9 * contact: dirk@opensg.org, gerrit.voss@vossg.org, jbehr@zgdv.de *
11 \*---------------------------------------------------------------------------*/
12 /*---------------------------------------------------------------------------*\
15 * This library is free software; you can redistribute it and/or modify it *
16 * under the terms of the GNU Library General Public License as published *
17 * by the Free Software Foundation, version 2. *
19 * This library is distributed in the hope that it will be useful, but *
20 * WITHOUT ANY WARRANTY; without even the implied warranty of *
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
22 * Library General Public License for more details. *
24 * You should have received a copy of the GNU Library General Public *
25 * License along with this library; if not, write to the Free Software *
26 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. *
28 \*---------------------------------------------------------------------------*/
29 /*---------------------------------------------------------------------------*\
37 \*---------------------------------------------------------------------------*/
40 #ifndef _POINTSOCKPIPELINE_H_
41 #define _POINTSOCKPIPELINE_H_
46 //---------------------------------------------------------------------------
48 //---------------------------------------------------------------------------
53 #include "OSGBaseDef.h"
54 #include "OSGBaseTypes.h"
55 #include "OSGPointSockConnection.h"
57 #include "OSGDgramSocket.h"
59 #include "OSGDgramQueue.h"
63 /*! \ingroup GrpBaseNetwork
64 \ingroup GrpBaseNetworkSockets
65 \ingroup GrpLibOSGBase
68 class OSG_BASE_DLLMAPPING PointSockPipeline
: public PointSockConnection
70 /*========================== PUBLIC =================================*/
73 /*---------------------------------------------------------------------*/
74 /*! \name Constructors */
77 PointSockPipeline ( void );
78 virtual ~PointSockPipeline ( void );
81 /*---------------------------------------------------------------------*/
82 /*! \name type info */
85 virtual const ConnectionType
*getType (void);
88 /*---------------------------------------------------------------------*/
89 /*! \name connection */
92 virtual Channel
connectGroup(const std::string
&address
,
94 virtual void disconnect ( void );
95 virtual Channel
acceptGroup ( Time timeout
=-1 );
98 /*---------------------------------------------------------------------*/
99 /*! \name channel handling */
102 virtual Channel
selectChannel (Time timeout
=-1) OSG_THROW (ReadError
);
105 /*---------------------------------------------------------------------*/
109 static PointConnection
*create(void);
113 /*========================= PROTECTED ===============================*/
116 /*---------------------------------------------------------------------*/
117 /*! \name IO Implementation */
120 virtual void read (MemoryHandle mem
, UInt32 size
);
121 virtual void readBuffer (void) OSG_THROW (ReadError
);
124 /*---------------------------------------------------------------------*/
135 /*========================== PRIVATE ================================*/
138 /*---------------------------------------------------------------------*/
139 /*! \name private helpers */
142 void initialize(void);
145 /*---------------------------------------------------------------------*/
146 /*! \name static type */
149 static ConnectionType _type
;
153 typedef PointSockConnection Inherited
;
155 // prohibit default functions (move to 'public' if you need one)
156 PointSockPipeline(const PointSockPipeline
&source
);
157 PointSockPipeline
& operator =(const PointSockPipeline
&source
);
160 //---------------------------------------------------------------------------
162 //---------------------------------------------------------------------------
166 typedef PointSockPipeline
*PointSockPipelineP
;
170 #endif /* _GROUPSOCKPIPELINE_H_ */