- Timestamp:
- Nov 23, 2005, 1:10:17 AM (19 years ago)
- Location:
- branches/network/src/lib/network
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/network/data_stream.cc
r5649 r5719 51 51 { 52 52 this->setClassID(CL_DATA_STREAM, "DataStream"); 53 downStream = &outStream;54 upStream = &inStream;53 this->downStream = &outStream; 54 this->upStream = &inStream; 55 55 } 56 56 … … 61 61 { 62 62 this->setClassID(CL_DATA_STREAM, "DataStream"); 63 networkSocket = &socket;63 this->networkSocket = &socket; 64 64 } 65 65 … … 70 70 { 71 71 this->setClassID(CL_DATA_STREAM, "DataStream"); 72 downStream = &outStream;72 this->downStream = &outStream; 73 73 } 74 74 … … 79 79 { 80 80 this->setClassID(CL_DATA_STREAM, "DataStream"); 81 upStream = &inStream;82 networkSocket = &socket;81 this->upStream = &inStream; 82 this->networkSocket = &socket; 83 83 } 84 84 … … 166 166 * This function writes the binary data to the local data. You will have to copy each byte and not only dublicate 167 167 * it. 168 * 169 * @param data: the binary array 170 * @param length: the length of the array 168 171 */ 169 void DataStream::writeBytes(byte& data)172 void passDown(byte* data, int length) 170 173 { 171 174 172 175 } 173 176 … … 177 180 * The reading function will have to copy the whole data and musn't just reference it! 178 181 * This function is only called from other connected DataStreams to read the data. 182 * 183 * @param data: the binary array 184 * @return: the length of the data 179 185 */ 180 byte& DataStream::readBytes()186 int passUp(byte* data) 181 187 { 182 188 183 189 } -
branches/network/src/lib/network/data_stream.h
r5649 r5719 50 50 51 51 protected: 52 void writeBytes(byte& data);52 void passDown(byte* data, int length); 53 53 54 byte& readBytes();54 int passUp(byte* data); 55 55 56 56 byte inBuffer [];
Note: See TracChangeset
for help on using the changeset viewer.