- Timestamp:
- Nov 23, 2005, 2:52:17 PM (19 years ago)
- Location:
- branches/network/src/lib/network
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/network/data_stream.cc
r5722 r5728 33 33 } 34 34 35 36 35 /** 37 36 * This constructor creates a new DataStream and connects it to both streams (upStream, downStream) … … 52 51 } 53 52 54 /**55 * This funtion connects this stream to a Synchronizable object. This stream is the top of the stream-chain.56 */57 void DataStream::connectSynchronizeable(Synchronizeable& sync)58 {59 60 }61 62 /**63 * And this function disconnects the Synch-object and sets it to NULL64 */65 void DataStream::disconnectSynchronizeable()66 {67 68 }69 70 /**71 * This function connects the stream to a NetworkSocket. This stream is the bottom of the stream-chain72 */73 void DataStream::connectNetworkSocket(NetworkSocket& socket)74 {75 76 }77 78 /**79 * And this function disconnects the Socket and sets it to NULL80 */81 void DataStream::disconnectNetworkSocket()82 {83 84 }85 53 86 54 /** -
branches/network/src/lib/network/data_stream.h
r5722 r5728 13 13 #include "netdefs.h" 14 14 15 class Synchronizeable;16 class NetworkSocket;17 18 15 class DataStream : public BaseObject 19 16 { 20 17 public: 21 18 DataStream(); 22 DataStream(Synchronizeable& sync);23 19 DataStream(DataStream& inStream, DataStream& outStream); 24 DataStream(Synchronizeable& sync, NetworkSocket& socket);25 DataStream(DataStream& inStream, NetworkSocket& socket);26 DataStream(Synchronizeable& sync, DataStream& outStream);27 20 28 21 ~DataStream(); 29 30 31 32 33 void connectNetworkSocket(NetworkSocket& socket); 34 35 void disconnectNetworkSocket(); 36 37 void connectSynchronizeable(Synchronizeable& sync); 38 39 void disconnectSynchronizeable(); 22 40 23 41 24 void connectUpStream(DataStream& upStream); … … 59 42 DataStream* upStream; 60 43 DataStream* downStream; 61 NetworkSocket* networkSocket;62 Synchronizeable* synchronizeable;63 44 64 45 }; -
branches/network/src/lib/network/network_stream.cc
r5727 r5728 97 97 /* DOWNSTREAM */ 98 98 /* first of all read the synchronizeable's data: */ 99 ret = this->synchronizeable ->readBytes(downData);99 ret = this->synchronizeables->readBytes(downData); 100 100 /* pass the data to the network socket */ 101 101 ret = this->networkSocket->writeBytes(downData, ret); … … 113 113 if( ret != 10) { PRINTF(0)("Error while reading data from the NetworkSocket\n");} 114 114 /* now pass the data to the sync object */ 115 this->synchronizeable ->writeBytes(upData, 0);115 this->synchronizeables->writeBytes(upData, 0); 116 116 117 117 -
branches/network/src/lib/network/network_stream.h
r5649 r5728 29 29 private: 30 30 //NetworkProtocol* networkProtocol; 31 NetworkSocket* networkSockets;31 //NetworkSocket* networkSockets; 32 32 ConnectionMonitor* connectionMonitor; 33 33 // tList<Synchronizeable>* synchronizeables; 34 34 Synchronizeable* synchronizeables; 35 NetworkSocket* networkSocket; 35 36 }; 36 37 #endif /* _NETWORK_STREAM */
Note: See TracChangeset
for help on using the changeset viewer.