Changeset 5554 in orxonox.OLD for branches/network
- Timestamp:
- Nov 13, 2005, 1:44:49 AM (19 years ago)
- Location:
- branches/network/src/lib/network
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/network/Makefile.am
r5533 r5554 7 7 network_manager.cc \ 8 8 network_socket.cc \ 9 connection_monitor.cc 9 connection_monitor.cc \ 10 data_stream.cc 10 11 11 12 … … 13 14 noinst_HEADERS = synchronizeable.h \ 14 15 network_manager.h \ 15 network_socket.h \ 16 connection_monitor.h 16 network_socket.h \ 17 connection_monitor.h \ 18 data_stream.h 17 19 -
branches/network/src/lib/network/data_stream.cc
r5524 r5554 1 // Data_stream.cc 1 /* 2 orxonox - the future of 3D-vertical-scrollers 2 3 4 Copyright (C) 2004 orx 5 6 This program is free software; you can redistribute it and/or modify 7 it under the terms of the GNU General Public License as published by 8 the Free Software Foundation; either version 2, or (at your option) 9 any later version. 10 11 ### File Specific: 12 main-programmer: Benjamin Knecht 13 co-programmer: ... 14 */ 15 16 /* include Data_stream Header */ 3 17 #include "Data_stream.h" 4 18 5 void connectStream() 19 20 #include "netdefs.h" 21 22 /* using namespace std is default, this needs to be here */ 23 using namespace std; 24 25 26 /** 27 * standart constructor 28 */ 29 void DataStream::DataStream() 30 { 31 32 } 33 34 /** 35 * standart deconstructor 36 */ 37 void DataStream::~DataStream() 6 38 { 7 39 8 40 } 9 41 10 void disconnectStream() 11 { 12 13 14 } 15 16 void processDate() 42 /** 43 * connects the stream to write and read on sockets 44 */ 45 void DataStream::connectStream() 17 46 { 18 47 19 48 } 20 49 21 void write() 50 51 /** 52 * disconnects the running stream 53 */ 54 void DataStream::disconnectStream() 22 55 { 23 56 24 57 } 25 58 26 void read() 59 60 /** 61 * processing incoming or outgoing data 62 */ 63 void DataStream::processData() 27 64 { 28 65 29 66 } 67 68 69 /** 70 * method to write data into a networksocket 71 */ 72 void DataStream::write() 73 { 74 75 } 76 77 78 /** 79 * method to read data from a networksocket 80 */ 81 void DataStream::read() 82 { 83 84 } -
branches/network/src/lib/network/data_stream.h
r5524 r5554 1 // Data_stream.h 1 /*! 2 * @file data_stream.h 3 * Main class for a data stream, used for our network stream 4 * network stream will get data, and will send it with a network socket 5 * to another network stream 2 6 3 class Data_stream 7 */ 8 9 #ifndef _DATA_STREAM_H 10 #define _DATA_STREAM_H 11 12 #include "base_object.h" 13 14 class DataStream : public BaseObject 4 15 { 16 DataStream(); 17 ~DataStream(); 18 5 19 protected: 6 20 byte inBuffer []; … … 11 25 public void disconnectStream(); 12 26 13 public virtual void processDat e();27 public virtual void processData(); 14 28 15 29 protected virtual void write(); … … 17 31 protected virtual void read(); 18 32 } 33 34 #endif /* _DATA_STREAM_ */
Note: See TracChangeset
for help on using the changeset viewer.