Update of /cvsroot/okernel/nrtl
In directory sc8-pr-cvs1:/tmp/cvs-serv31694
Modified Files:
nrtl.h
Log Message:
First step on the NeObject ...
Index: nrtl.h
===================================================================
RCS file: /cvsroot/okernel/nrtl/nrtl.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** nrtl.h 14 May 2003 20:35:36 -0000 1.4
--- nrtl.h 14 May 2003 21:20:59 -0000 1.5
***************
*** 88,92 ****
// ---- we depend heavely on this !
//
! // __x rearch, please !
// ===========================================================================
--- 88,92 ----
// ---- we depend heavely on this !
//
! // __x re-arch, please !
// ===========================================================================
***************
*** 177,181 ****
// Proc types
// ===========================================================================
! // If you don't need a class, don't use it and its FuncType
class Object;
--- 177,181 ----
// Proc types
// ===========================================================================
! // If you don't need a class, don't use it nor its FuncType
class Object;
***************
*** 222,225 ****
--- 222,271 ----
// ===========================================================================
+ // Internal Buffer class
+ // ===========================================================================
+
+ #if defined(NTRL_NETWORK)
+
+ class InternalBuffer {
+
+ private:
+ InternalBuffer(int,const jbyte* s);
+ jpointer operator new(size_t cs, size_t ss = 0);
+
+ int refs; // number of references
+ int len ; // buffer length
+ jbyte body[1]; // the buffer
+
+ friend class NetBuffer;
+
+ }; // InternalBuffer Class
+
+ #endif
+
+ // ===========================================================================
+ // NetBuffer
+ // ===========================================================================
+
+ #if defined(NTRL_NETWORK)
+
+ class OCLASSSPEC NetBuffer {
+
+ protected:
+ void reset();
+
+ public:
+
+ NetBuffer(size_t asize = 0);
+
+ private:
+ InternalBuffer *buf;
+ size_t readCounter;
+ size_t writeCounter;
+
+ }; // NetBuffer Class
+
+ #endif
+
+ // ===========================================================================
// Object Class
// ===========================================================================
***************
*** 257,260 ****
--- 303,313 ----
jpointer _jsobject() { return jsobject; }
void _jsobject(jpointer pv) { jsobject = pv; }
+ #endif
+
+ #if defined(NTRL_NETWORK)
+ protected:
+
+ public:
+
#endif
|