Index: branches/network/src/lib/Makefile.in
===================================================================
--- branches/network/src/lib/Makefile.in	(revision 5649)
+++ branches/network/src/lib/Makefile.in	(revision 5650)
@@ -1,3 +1,3 @@
-# Makefile.in generated by automake 1.9.6 from Makefile.am.
+# Makefile.in generated by automake 1.9.5 from Makefile.am.
 # @configure_input@
 
@@ -15,4 +15,6 @@
 @SET_MAKE@
 
+
+SOURCES = $(libORXlibs_a_SOURCES)
 
 srcdir = @srcdir@
Index: branches/network/src/lib/collision_detection/Makefile.in
===================================================================
--- branches/network/src/lib/collision_detection/Makefile.in	(revision 5649)
+++ branches/network/src/lib/collision_detection/Makefile.in	(revision 5650)
@@ -1,3 +1,3 @@
-# Makefile.in generated by automake 1.9.6 from Makefile.am.
+# Makefile.in generated by automake 1.9.5 from Makefile.am.
 # @configure_input@
 
@@ -15,4 +15,6 @@
 @SET_MAKE@
 
+
+SOURCES = $(libORXcd_a_SOURCES)
 
 srcdir = @srcdir@
Index: branches/network/src/lib/event/Makefile.in
===================================================================
--- branches/network/src/lib/event/Makefile.in	(revision 5649)
+++ branches/network/src/lib/event/Makefile.in	(revision 5650)
@@ -1,3 +1,3 @@
-# Makefile.in generated by automake 1.9.6 from Makefile.am.
+# Makefile.in generated by automake 1.9.5 from Makefile.am.
 # @configure_input@
 
@@ -15,4 +15,6 @@
 @SET_MAKE@
 
+
+SOURCES = $(libORXevent_a_SOURCES)
 
 srcdir = @srcdir@
Index: branches/network/src/lib/graphics/Makefile.in
===================================================================
--- branches/network/src/lib/graphics/Makefile.in	(revision 5649)
+++ branches/network/src/lib/graphics/Makefile.in	(revision 5650)
@@ -1,3 +1,3 @@
-# Makefile.in generated by automake 1.9.6 from Makefile.am.
+# Makefile.in generated by automake 1.9.5 from Makefile.am.
 # @configure_input@
 
@@ -15,4 +15,6 @@
 @SET_MAKE@
 
+
+SOURCES = $(libORXgraphics_a_SOURCES)
 
 srcdir = @srcdir@
Index: branches/network/src/lib/graphics/importer/Makefile.in
===================================================================
--- branches/network/src/lib/graphics/importer/Makefile.in	(revision 5649)
+++ branches/network/src/lib/graphics/importer/Makefile.in	(revision 5650)
@@ -1,3 +1,3 @@
-# Makefile.in generated by automake 1.9.6 from Makefile.am.
+# Makefile.in generated by automake 1.9.5 from Makefile.am.
 # @configure_input@
 
@@ -15,4 +15,6 @@
 @SET_MAKE@
 
+
+SOURCES = $(libORXimporter_a_SOURCES)
 
 srcdir = @srcdir@
Index: branches/network/src/lib/graphics/spatial_separation/Makefile.in
===================================================================
--- branches/network/src/lib/graphics/spatial_separation/Makefile.in	(revision 5649)
+++ branches/network/src/lib/graphics/spatial_separation/Makefile.in	(revision 5650)
@@ -1,3 +1,3 @@
-# Makefile.in generated by automake 1.9.6 from Makefile.am.
+# Makefile.in generated by automake 1.9.5 from Makefile.am.
 # @configure_input@
 
@@ -15,4 +15,6 @@
 @SET_MAKE@
 
+
+SOURCES = $(libORXquadtree_a_SOURCES)
 
 srcdir = @srcdir@
Index: branches/network/src/lib/gui/Makefile.in
===================================================================
--- branches/network/src/lib/gui/Makefile.in	(revision 5649)
+++ branches/network/src/lib/gui/Makefile.in	(revision 5650)
@@ -1,3 +1,3 @@
-# Makefile.in generated by automake 1.9.6 from Makefile.am.
+# Makefile.in generated by automake 1.9.5 from Makefile.am.
 # @configure_input@
 
Index: branches/network/src/lib/gui/gl_gui/Makefile.in
===================================================================
--- branches/network/src/lib/gui/gl_gui/Makefile.in	(revision 5649)
+++ branches/network/src/lib/gui/gl_gui/Makefile.in	(revision 5650)
@@ -1,3 +1,3 @@
-# Makefile.in generated by automake 1.9.6 from Makefile.am.
+# Makefile.in generated by automake 1.9.5 from Makefile.am.
 # @configure_input@
 
@@ -15,4 +15,6 @@
 @SET_MAKE@
 
+
+SOURCES = $(libORXglgui_a_SOURCES)
 
 srcdir = @srcdir@
Index: branches/network/src/lib/gui/gtk_gui/Makefile.in
===================================================================
--- branches/network/src/lib/gui/gtk_gui/Makefile.in	(revision 5649)
+++ branches/network/src/lib/gui/gtk_gui/Makefile.in	(revision 5650)
@@ -1,3 +1,3 @@
-# Makefile.in generated by automake 1.9.6 from Makefile.am.
+# Makefile.in generated by automake 1.9.5 from Makefile.am.
 # @configure_input@
 
@@ -15,4 +15,6 @@
 @SET_MAKE@
 
+
+SOURCES = $(libORXgui_a_SOURCES)
 
 srcdir = @srcdir@
Index: branches/network/src/lib/network/Makefile.in
===================================================================
--- branches/network/src/lib/network/Makefile.in	(revision 5649)
+++ branches/network/src/lib/network/Makefile.in	(revision 5650)
@@ -1,3 +1,3 @@
-# Makefile.in generated by automake 1.9.6 from Makefile.am.
+# Makefile.in generated by automake 1.9.5 from Makefile.am.
 # @configure_input@
 
@@ -15,4 +15,6 @@
 @SET_MAKE@
 
+
+SOURCES = $(libORXnet_a_SOURCES)
 
 srcdir = @srcdir@
Index: branches/network/src/lib/network/network_stream.cc
===================================================================
--- branches/network/src/lib/network/network_stream.cc	(revision 5649)
+++ branches/network/src/lib/network/network_stream.cc	(revision 5650)
@@ -85,8 +85,27 @@
   byte* test = (byte *)data[0]; // obsolete, for debugging only
   int ret = 0;
-  this->synchronizeable->writeByteStream(NULL);
-  ret = this->networkSocket->writeBytes(NULL,1);
-  test = this->synchronizeable->readByteStream();
-  ret = this->networkSocket->readBytes(test,1);
+  
+  byte downData[10];
+  byte upData[10];
+  
+  /* DOWNSTREAM */
+  /* first of all read the synchronizeable's data: */
+  ret = this->synchronizeable->readBytes(downData);
+  /* pass the data to the network socket */
+  ret = this->networkSocket->writeBytes(downData, ret);
+  /* check if there was an error */
+  if( ret == -1) { PRINTF(0)("Error in writing data to the NetworkSocket\n");}
+  
+  
+  /* UPSTREAM */
+  /* first read 10bytes of data (debug) */
+  ret = this->networkSocket->readBytes(upData, 0);
+  /* error checking: data read? */
+  if( ret != 10) { PRINTF(0)("Error while reading data from the NetworkSocket\n");}
+  /* now pass the data to the sync object */
+  this->synchronizeable->writeBytes(upData, 0);
+  
+  
+
 }
 
Index: branches/network/src/lib/network/synchronizeable.cc
===================================================================
--- branches/network/src/lib/network/synchronizeable.cc	(revision 5649)
+++ branches/network/src/lib/network/synchronizeable.cc	(revision 5650)
@@ -41,5 +41,5 @@
                           \brief write data to NetworkStream
  */
- void Synchronizeable::writeByteStream(byte* data)
+ void Synchronizeable::writeBytes(byte* data, int length)
 {
 
@@ -52,5 +52,5 @@
                                  \brief read data from NetworkStream
  */
- byte* Synchronizeable::readByteStream()
+ int Synchronizeable::readBytes(byte* data)
 {
 
Index: branches/network/src/lib/network/synchronizeable.h
===================================================================
--- branches/network/src/lib/network/synchronizeable.h	(revision 5649)
+++ branches/network/src/lib/network/synchronizeable.h	(revision 5650)
@@ -17,6 +17,6 @@
                    ~Synchronizeable();
 
- virtual void      writeByteStream(byte* data);
- virtual byte*     readByteStream();
+ virtual void      writeBytes(byte* data, int length);
+ virtual int       readBytes(byte* data);
  virtual void      writeDebug();
  virtual void      readDebug();
Index: branches/network/src/lib/particles/Makefile.in
===================================================================
--- branches/network/src/lib/particles/Makefile.in	(revision 5649)
+++ branches/network/src/lib/particles/Makefile.in	(revision 5650)
@@ -1,3 +1,3 @@
-# Makefile.in generated by automake 1.9.6 from Makefile.am.
+# Makefile.in generated by automake 1.9.5 from Makefile.am.
 # @configure_input@
 
@@ -15,4 +15,6 @@
 @SET_MAKE@
 
+
+SOURCES = $(libORXparticles_a_SOURCES)
 
 srcdir = @srcdir@
Index: branches/network/src/lib/physics/Makefile.in
===================================================================
--- branches/network/src/lib/physics/Makefile.in	(revision 5649)
+++ branches/network/src/lib/physics/Makefile.in	(revision 5650)
@@ -1,3 +1,3 @@
-# Makefile.in generated by automake 1.9.6 from Makefile.am.
+# Makefile.in generated by automake 1.9.5 from Makefile.am.
 # @configure_input@
 
@@ -15,4 +15,6 @@
 @SET_MAKE@
 
+
+SOURCES = $(libORXphysics_a_SOURCES)
 
 srcdir = @srcdir@
Index: branches/network/src/lib/shell/Makefile.in
===================================================================
--- branches/network/src/lib/shell/Makefile.in	(revision 5649)
+++ branches/network/src/lib/shell/Makefile.in	(revision 5650)
@@ -1,3 +1,3 @@
-# Makefile.in generated by automake 1.9.6 from Makefile.am.
+# Makefile.in generated by automake 1.9.5 from Makefile.am.
 # @configure_input@
 
@@ -15,4 +15,6 @@
 @SET_MAKE@
 
+
+SOURCES = $(libORXshell_a_SOURCES)
 
 srcdir = @srcdir@
Index: branches/network/src/lib/sound/Makefile.in
===================================================================
--- branches/network/src/lib/sound/Makefile.in	(revision 5649)
+++ branches/network/src/lib/sound/Makefile.in	(revision 5650)
@@ -1,3 +1,3 @@
-# Makefile.in generated by automake 1.9.6 from Makefile.am.
+# Makefile.in generated by automake 1.9.5 from Makefile.am.
 # @configure_input@
 
@@ -15,4 +15,6 @@
 @SET_MAKE@
 
+
+SOURCES = $(libORXsound_a_SOURCES)
 
 srcdir = @srcdir@
Index: branches/network/src/lib/tinyxml/Makefile.in
===================================================================
--- branches/network/src/lib/tinyxml/Makefile.in	(revision 5649)
+++ branches/network/src/lib/tinyxml/Makefile.in	(revision 5650)
@@ -1,3 +1,3 @@
-# Makefile.in generated by automake 1.9.6 from Makefile.am.
+# Makefile.in generated by automake 1.9.5 from Makefile.am.
 # @configure_input@
 
@@ -15,4 +15,6 @@
 @SET_MAKE@
 
+
+SOURCES = $(libtinyxml_a_SOURCES)
 
 srcdir = @srcdir@
