Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5554 in orxonox.OLD for branches


Ignore:
Timestamp:
Nov 13, 2005, 1:44:49 AM (19 years ago)
Author:
bknecht
Message:

added comments to data_stream files (.cc, .h), data_stream should now compile and is ready for implementation

Location:
branches/network/src/lib/network
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/lib/network/Makefile.am

    r5533 r5554  
    77                      network_manager.cc \
    88                      network_socket.cc \
    9                       connection_monitor.cc
     9                      connection_monitor.cc \
     10                  data_stream.cc
    1011
    1112
     
    1314noinst_HEADERS = synchronizeable.h \
    1415                 network_manager.h \
    15                  network_socket.h \
    16                  connection_monitor.h
     16                 network_socket.h \
     17                 connection_monitor.h \
     18                 data_stream.h
    1719
  • branches/network/src/lib/network/data_stream.cc

    r5524 r5554  
    1 // Data_stream.cc
     1/*
     2   orxonox - the future of 3D-vertical-scrollers
    23
     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 */
    317#include "Data_stream.h"
    418
    5 void connectStream()
     19
     20#include "netdefs.h"
     21
     22/* using namespace std is default, this needs to be here */
     23using namespace std;
     24
     25
     26/**
     27 *  standart constructor
     28 */
     29void DataStream::DataStream()
     30{
     31     
     32}
     33
     34/**
     35 *  standart deconstructor
     36 */
     37void DataStream::~DataStream()
    638{
    739     
    840}
    941
    10 void disconnectStream()
    11 {
    12      
    13      
    14 }
    15 
    16 void processDate()
     42/**
     43 *  connects the stream to write and read on sockets
     44 */
     45void DataStream::connectStream()
    1746{
    1847     
    1948}
    2049
    21 void write()
     50
     51/**
     52 *  disconnects the running stream
     53 */
     54void DataStream::disconnectStream()
    2255{
    2356     
    2457}
    2558
    26 void read()
     59
     60/**
     61 *  processing incoming or outgoing data
     62 */
     63void DataStream::processData()
    2764{
    2865     
    2966}
     67
     68
     69/**
     70 *  method to write data into a networksocket
     71 */
     72void DataStream::write()
     73{
     74     
     75}
     76
     77
     78/**
     79 * method to read data from a networksocket
     80 */
     81void 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
    26
    3 class Data_stream
     7*/
     8
     9#ifndef _DATA_STREAM_H
     10#define _DATA_STREAM_H
     11
     12#include "base_object.h"
     13
     14class DataStream : public BaseObject
    415{
     16      DataStream();
     17      ~DataStream();
     18     
    519      protected:
    620      byte inBuffer [];
     
    1125      public void disconnectStream();
    1226     
    13       public virtual void processDate();
     27      public virtual void processData();
    1428     
    1529      protected virtual void write();
     
    1731      protected virtual void read();     
    1832}
     33
     34#endif /* _DATA_STREAM_ */
Note: See TracChangeset for help on using the changeset viewer.