- Timestamp:
- Nov 23, 2005, 2:31:30 PM (19 years ago)
- Location:
- branches/network/src/lib/network
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/network/data_stream.cc
r5719 r5722 26 26 27 27 /** 28 * This is the empty constru ktor28 * This is the empty constructor 29 29 */ 30 30 DataStream::DataStream() … … 33 33 } 34 34 35 36 37 /**38 * This is the empty construktor39 */40 DataStream::DataStream(Synchronizeable& sync)41 {42 this->setClassID(CL_DATA_STREAM, "DataStream");43 this->synchronizeable = &sync;44 45 }46 35 47 36 /** … … 53 42 this->downStream = &outStream; 54 43 this->upStream = &inStream; 55 }56 57 /**58 * This constructor creates a new DataStream and connects it to a synchronizeable object and the NetworkSocket59 */60 DataStream::DataStream(Synchronizeable& sync, NetworkSocket& socket)61 {62 this->setClassID(CL_DATA_STREAM, "DataStream");63 this->networkSocket = &socket;64 }65 66 /**67 * This constructor creates a new DataStream and connects the Synchronizeable to it68 */69 DataStream::DataStream(Synchronizeable& sync, DataStream& outStream)70 {71 this->setClassID(CL_DATA_STREAM, "DataStream");72 this->downStream = &outStream;73 }74 75 /**76 * This constructor creates a new DataStream and connects the NetworkSocket to it77 */78 DataStream::DataStream(DataStream& inStream, NetworkSocket& socket)79 {80 this->setClassID(CL_DATA_STREAM, "DataStream");81 this->upStream = &inStream;82 this->networkSocket = &socket;83 44 } 84 45 -
branches/network/src/lib/network/data_stream.h
r5719 r5722 53 53 54 54 int passUp(byte* data); 55 56 byte inBuffer [];57 byte outBuffer [];55 56 byte* upBuffer [1024]; 57 byte* downBuffer [1024]; 58 58 unsigned int bufferSize; 59 59 DataStream* upStream; -
branches/network/src/lib/network/network_socket.h
r5631 r5722 22 22 #include <string.h> 23 23 24 #include <SDL_thread.h> 25 24 #ifdef HAVE_SDL_H 25 #include <SDL_Thread.h> 26 #else 27 #include <SDL/SDL_thread.h> 28 #endif 26 29 /* include this file, it contains some default definitions */ 27 30 #include "netdefs.h"
Note: See TracChangeset
for help on using the changeset viewer.