- Timestamp:
- Nov 16, 2005, 2:47:41 PM (19 years ago)
- Location:
- branches/network/src/lib/network
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/network/data_stream.cc
r5569 r5600 29 29 DataStream::DataStream(DataStream& upStream, DataStream& downStream) 30 30 { 31 31 this->setClassID(CL_DATA_STREAM, "DataStream"); 32 32 } 33 33 … … 37 37 DataStream::DataStream(Synchronizeable& sync, NetworkSocket& socket) 38 38 { 39 this->setClassID(CL_DATA_STREAM, "DataStream"); 40 } 39 41 42 /** 43 * This constructor creates a new DataStream and connects the Synchronizeable to it 44 */ 45 DataStream::DataStream(Synchronizable& sync, DataStream& downStream) 46 { 47 this->setClassID(CL_DATA_STREAM, "DataStream"); 48 } 49 50 /** 51 * This constructor creates a new DataStream and connects the NetworkSocket to it 52 */ 53 DataStream::DataStream(DataStream& upStream, NetworkSocekt& socket) 54 { 55 this->setClassID(CL_DATA_STREAM, "DataStream"); 40 56 } 41 57 … … 92 108 } 93 109 110 /** 111 * Following functions are protected and only visible inside the object and from derived classes 112 */ 94 113 95 114 /** … … 97 116 * it. 98 117 */ 99 void DataStream::write (byte& data)118 void DataStream::writeBytes(byte& data) 100 119 { 101 120 … … 108 127 * This function is only called from other connected DataStreams to read the data. 109 128 */ 110 byte& DataStream::read ()129 byte& DataStream::readBytes() 111 130 { 112 131 -
branches/network/src/lib/network/data_stream.h
r5569 r5600 20 20 DataStream(DataStream& upStream, DataStream& downStream); 21 21 DataStream(Synchronizeable& sync, NetworkSocket& socket); 22 DataStream(DataStream& upStream, NetworkSocket& socket); 23 DataStream(Synchronizeable& sync, DataStream& downStream); 24 22 25 ~DataStream(); 23 26 … … 41 44 42 45 protected: 43 void write (byte& data);46 void writeBytes(byte& data); 44 47 45 byte& read ();48 byte& readBytes(); 46 49 }; 47 50
Note: See TracChangeset
for help on using the changeset viewer.