tcp_server_LDADD = \
$(top_builddir)/simgear/io/libsgio.a \
$(top_builddir)/simgear/debug/libsgdebug.a \
- -lplibnet
+ $(top_builddir)/simgear/bucket/libsgbucket.a \
+ $(top_builddir)/simgear/misc/libsgmisc.a \
+ $(top_builddir)/simgear/xml/libsgxml.a \
+ -lplibnet -lz
tcp_client_SOURCES = tcp_client.cxx
tcp_client_LDADD = \
$(top_builddir)/simgear/io/libsgio.a \
$(top_builddir)/simgear/debug/libsgdebug.a \
- -lplibnet
+ $(top_builddir)/simgear/bucket/libsgbucket.a \
+ $(top_builddir)/simgear/misc/libsgmisc.a \
+ $(top_builddir)/simgear/xml/libsgxml.a \
+ -lplibnet -lz
socktest_SOURCES = socktest.cxx
{
if (!init)
{
- netInit();
+ netInit(NULL, NULL); // plib-1.4.2 compatible
init = true;
}
{
is_tcp = true;
}
- else if ( style != "udp" )
+ else if ( style != (string)"udp" )
{
SG_LOG( SG_IO, SG_ALERT,
"Error: SGSocket() unknown style = " << style );
-#include <iostream>
+#include <simgear/compiler.h>
+#include STL_IOSTREAM
#include <unistd.h>
#include <simgear/debug/logstream.hxx>
#include "sg_socket.hxx"
+#ifndef SG_HAVE_NATIVE_SGI_COMPILERS
using std::cout;
+#endif
class TcpClient
{
+#include <simgear/compiler.h>
#include <simgear/debug/logstream.hxx>
-#include <string>
-#include <iostream>
+#include STL_STRING
+#include STL_IOSTREAM
#include "sg_socket.hxx"
using std::string;
+#ifndef SG_HAVE_NATIVE_SGI_COMPILERS
using std::cout;
+#endif
class TcpServer
{