[Plib-cvs] plib/src/net net.h,NONE,1.1 Makefile.am,1.8,1.9 netSocket.cxx,1.25,1.26 netSocket.h,1.16,
Brought to you by:
sjbaker
From: Steve B. <sj...@us...> - 2004-03-21 17:25:14
|
Update of /cvsroot/plib/plib/src/net In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7848/plib/src/net Modified Files: Makefile.am netSocket.cxx netSocket.h Added Files: net.h Log Message: Cleaned up the network library - did some improvements to the client/server example programs so that they'll actually work when you run them!! --- NEW FILE: net.h --- #ifndef __PLIB_NET_H__ #define __PLIB_NET_H__ 1 #include <plib/netBuffer.h> #include <plib/netChannel.h> #include <plib/netChat.h> #include <plib/netMessage.h> #include <plib/netMonitor.h> #include <plib/netSocket.h> #endif Index: Makefile.am =================================================================== RCS file: /cvsroot/plib/plib/src/net/Makefile.am,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- Makefile.am 31 Aug 2002 22:21:21 -0000 1.8 +++ Makefile.am 21 Mar 2004 17:13:00 -0000 1.9 @@ -3,7 +3,7 @@ lib_LIBRARIES = libplibnet.a include_HEADERS = netBuffer.h netChannel.h netChat.h netMessage.h \ - netMonitor.h netSocket.h + netMonitor.h netSocket.h net.h libplibnet_a_SOURCES = netBuffer.cxx netChannel.cxx netChat.cxx \ netMessage.cxx netMonitor.cxx netSocket.cxx Index: netSocket.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/net/netSocket.cxx,v retrieving revision 1.25 retrieving revision 1.26 diff -u -d -r1.25 -r1.26 --- netSocket.cxx 11 Nov 2003 22:54:48 -0000 1.25 +++ netSocket.cxx 21 Mar 2004 17:13:00 -0000 1.26 @@ -418,6 +418,13 @@ int netInit ( int* argc, char** argv ) { + /* Legacy */ + + return netInit () ; +} + +int netInit () +{ assert ( sizeof(sockaddr_in) == sizeof(netAddress) ) ; #if defined(UL_CYGWIN) || !defined (UL_WIN32) Index: netSocket.h =================================================================== RCS file: /cvsroot/plib/plib/src/net/netSocket.h,v retrieving revision 1.16 retrieving revision 1.17 diff -u -d -r1.16 -r1.17 --- netSocket.h 2 Sep 2002 06:05:44 -0000 1.16 +++ netSocket.h 21 Mar 2004 17:13:00 -0000 1.17 @@ -122,7 +122,11 @@ } ; -int netInit ( int* argc = NULL, char** argv = NULL ) ; +int netInit ( int* argc, char** argv = NULL ) ; /* Legacy */ + +int netInit () ; + + cchar* netFormat ( cchar* fmt, ... ) ; |