Changeset 5809 in orxonox.OLD for branches/network/src/lib/network/network_stream.h
- Timestamp:
- Nov 28, 2005, 10:14:48 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/network/network_stream.h
r5804 r5809 8 8 9 9 #include "data_stream.h" 10 #include "network_protocol.h" 10 11 11 12 class Synchronizeable; … … 13 14 class ConnectionMonitor; 14 15 class NetworkProtocol; 16 17 18 //<! The state of the NetworkStream 19 typedef enum NetStat { 20 NET_REC_HEADER = 0, //!< Waiting for header 21 NET_REC_DATA, //!< Waiting for data 22 23 NUM_STATES //!< Number of states 24 }; 25 15 26 16 27 class NetworkStream : public DataStream … … 21 32 NetworkStream(IPaddress& address, Synchronizeable& sync, NodeType type); 22 33 NetworkStream(Synchronizeable& sync, unsigned int port, NodeType type); 23 24 34 ~NetworkStream(); 25 35 … … 37 47 NetworkSocket* networkSocket; 38 48 int type; 49 int state; 50 Header packetHeader; 39 51 }; 40 52 #endif /* _NETWORK_STREAM */
Note: See TracChangeset
for help on using the changeset viewer.