debian/0000755000000000000000000000000012254556000007165 5ustar debian/source/0000755000000000000000000000000012254100255010462 5ustar debian/source/format0000644000000000000000000000001412254100255011670 0ustar 3.0 (quilt) debian/control0000644000000000000000000000252212254100255010566 0ustar Source: libcapsinetwork Priority: optional Section: net Maintainer: Debian Games Team Uploaders: Markus Koschany Build-Depends: debhelper (>= 9), dh-autoreconf Standards-Version: 3.9.5 Homepage: http://wiki.debian.org/Games/monopd Vcs-Git: git://anonscm.debian.org/pkg-games/libcapsinetwork.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-games/libcapsinetwork.git Package: libcapsinetwork-dev Section: libdevel Architecture: any Depends: libcapsinetwork0c2a (= ${binary:Version}), ${misc:Depends} Description: C++ network server library, development files This package contains the header files and static libraries needed for development with libCapsiNetwork. . libCapsiNetwork is a network library for C++ server daemons aimed at easy development. Implementing a server is as easy as adding a few lines to your code and writing one function that handles input events. Package: libcapsinetwork0c2a Section: libs Architecture: any Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends} Multi-Arch: same Description: C++ network server library libCapsiNetwork is a network library for C++ server daemons aimed at easy development. Implementing a server is as easy as adding a few lines to your code and writing one function that handles input events. debian/libcapsinetwork0c2a.install0000644000000000000000000000002412254100255014414 0ustar usr/lib/*/lib*.so.* debian/compat0000644000000000000000000000000212254100255010360 0ustar 9 debian/libcapsinetwork0c2a.symbols0000644000000000000000000000232212254100255014441 0ustar # SymbolsHelper-Confirmed: 0.3.0 amd64 libcapsinetwork.so.0 libcapsinetwork0c2a #MINVER# _ZN10ListenPortC1ESsj@Base 0.3.0 _ZN10ListenPortC2ESsj@Base 0.3.0 _ZN6Socket10fillBufferESs@Base 0.3.0 _ZN6Socket11hasReadLineEv@Base 0.3.0 _ZN6Socket7ioWriteESs@Base 0.3.0 _ZN6Socket8readLineEv@Base 0.3.0 _ZN6SocketC1Ej@Base 0.3.0 _ZN6SocketC2Ej@Base 0.3.0 _ZN8Listener10findSocketEj@Base 0.3.0 _ZN8Listener13addListenPortEi@Base 0.3.0 _ZN8Listener13checkActivityEv@Base 0.3.0 _ZN8Listener13socketHandlerEP6SocketRKSs@Base 0.3.0 _ZN8Listener9delSocketEP6Socket@Base 0.3.0 _ZN8Listener9newSocketEj@Base 0.3.0 _ZN8ListenerC1Ev@Base 0.3.0 _ZN8ListenerC2Ev@Base 0.3.0 _ZN8ListenerD0Ev@Base 0.3.0 _ZN8ListenerD1Ev@Base 0.3.0 _ZN8ListenerD2Ev@Base 0.3.0 _ZNK10ListenPort7isBoundEv@Base 0.3.0 (optional=templinst)_ZNSt6vectorIP10ListenPortSaIS1_EE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPS1_S3_EERKS1_@Base 0.3.0 (optional=templinst)_ZNSt6vectorIP6SocketSaIS1_EE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPS1_S3_EERKS1_@Base 0.3.0 (optional=templinst)_ZNSt6vectorIP6SocketSaIS1_EE5eraseEN9__gnu_cxx17__normal_iteratorIPS1_S3_EE@Base 0.3.0 _ZTI8Listener@Base 0.3.0 _ZTS8Listener@Base 0.3.0 _ZTV8Listener@Base 0.3.0 debian/rules0000755000000000000000000000015312254100255010241 0ustar #!/usr/bin/make -f export DEB_BUILD_MAINT_OPTIONS = hardening=+all %: dh $@ --parallel --with autoreconf debian/patches/0000755000000000000000000000000012254100255010611 5ustar debian/patches/01_gcc43_includes.patch0000644000000000000000000000245712254100255014733 0ustar From: Daniel Schepler Date: Sun, 6 Oct 2013 18:13:14 +0200 Subject: 01_gcc43_includes --- src/listener.cpp | 1 + src/listenport.cpp | 1 + src/server.cpp | 1 + src/socket.cpp | 1 + 4 files changed, 4 insertions(+) diff --git a/src/listener.cpp b/src/listener.cpp index 7e430cf..1e23325 100644 --- a/src/listener.cpp +++ b/src/listener.cpp @@ -31,6 +31,7 @@ #include #include +#include #include "listener.h" #include "listenport.h" diff --git a/src/listenport.cpp b/src/listenport.cpp index b131c81..1335487 100644 --- a/src/listenport.cpp +++ b/src/listenport.cpp @@ -30,6 +30,7 @@ #include #include #include +#include #include "listenport.h" diff --git a/src/server.cpp b/src/server.cpp index d749419..cf5dd7a 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -26,6 +26,7 @@ #include #include +#include // In real applications, use the following include instead of the local. // #include diff --git a/src/socket.cpp b/src/socket.cpp index 65bcef8..ba7005e 100644 --- a/src/socket.cpp +++ b/src/socket.cpp @@ -25,6 +25,7 @@ #include #include #include +#include #include "socket.h" debian/patches/series0000644000000000000000000000010212254100255012017 0ustar 01_gcc43_includes.patch 02_parallel_make.patch 03_64bit_fix.patch debian/patches/03_64bit_fix.patch0000644000000000000000000000156412254100255013740 0ustar From: Daniel Schepler Date: Sun, 6 Oct 2013 18:13:14 +0200 Subject: 03_64bit_fix --- src/socket.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/socket.cpp b/src/socket.cpp index ba7005e..97aa51e 100644 --- a/src/socket.cpp +++ b/src/socket.cpp @@ -50,7 +50,7 @@ int Socket::ioWrite(const std::string data) const bool Socket::hasReadLine() { static std::string newLine = "\r\n"; - unsigned int pos = m_ioBuf.find_first_of(newLine); + std::string::size_type pos = m_ioBuf.find_first_of(newLine); return (!(pos == std::string::npos)); } @@ -58,7 +58,7 @@ const bool Socket::hasReadLine() const std::string Socket::readLine() { static std::string newLine = "\r\n"; - unsigned int pos = m_ioBuf.find_first_of(newLine); + std::string::size_type pos = m_ioBuf.find_first_of(newLine); if (pos != std::string::npos) { debian/patches/02_parallel_make.patch0000644000000000000000000000112712254100255014725 0ustar From: Daniel Schepler Date: Sun, 6 Oct 2013 18:13:14 +0200 Subject: 02_parallel_make --- src/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Makefile.am b/src/Makefile.am index 11e2f53..80123ec 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -8,7 +8,7 @@ libcapsinetworkincdir = $(includedir)/libcapsinetwork noinst_PROGRAMS = exampleserver exampleserver_SOURCES = server.cpp -exampleserver_LDADD = -L. -lcapsinetwork +exampleserver_LDADD = ./libcapsinetwork.la exampleserverincdir = . noinst_HEADERS = listenport.h server.h debian/libcapsinetwork-dev.examples0000644000000000000000000000003412254100255014673 0ustar src/server.cpp src/server.h debian/watch0000644000000000000000000000014612254100255010214 0ustar # Upstream is dead and the original site went offline. Nowadays Debian can be # regarded as upstream. debian/copyright0000644000000000000000000000350712254100255011122 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: libCapsiNetwork Source: http://unixcode.org/libcapsinetwork/download.html Comment: The old site went offline. Nowadays Debian can be regarded as upstream. Files: * Copyright: 2002, Rob Kaper 2002, Erik van Zijst License: BSD-2-clause Files: debian/* Copyright: 2003-2011, Daniel Schepler 2013, Markus Koschany License: BSD-2-clause License: BSD-2-clause Copyright (c) 2002 Rob Kaper . All rights reserved. . Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS `AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. debian/libcapsinetwork-dev.install0000644000000000000000000000006112254100255014523 0ustar usr/include/* usr/lib/*/lib*.a usr/lib/*/lib*.so debian/changelog0000644000000000000000000001021312254555627011052 0ustar libcapsinetwork (0.3.0-8) unstable; urgency=medium * New maintainer Debian Games Team. (Closes: #634498) * Add myself to Uploaders. * debian/control: - Drop automake, cdbs and libtool. Use dh-autoreconf instead. - Bump Standards-Version to 3.9.5, no changes. - Add VCS fields. - Drop Conflicts and Replaces fields. They are obsolete. - Use Pre-Depends: ${misc:Pre-Depends}. * Switch to dh sequencer. * Enable all hardening build flags. * Install upstream changelog only once. * Drop source.lintian-overrides. * debian/patches: - Add DEP-3 headers to all patches. - Rename patch filename extension from diff to patch. * Update debian/copyright to copyright format 1.0. * Update debian/watch. The original site went offline. * Add libcapsinetwork0c2a.symbols file. -- Markus Koschany Tue, 17 Dec 2013 17:48:17 +0100 libcapsinetwork (0.3.0-7) unstable; urgency=low * Orphaning package (see #634498). * Remove .la file from -dev package. * Multiarchify. * Bump Standards-Version to 3.9.2. * Update to 3.0 (quilt) source format. -- Daniel Schepler Mon, 18 Jul 2011 21:56:38 -0700 libcapsinetwork (0.3.0-6) unstable; urgency=low * Fix FTBFS with automake 1.11 as automake package. -- Daniel Schepler Tue, 18 Aug 2009 20:20:05 -0700 libcapsinetwork (0.3.0-5) unstable; urgency=low * Update 01_gcc43_includes.diff to add several more includes needed with the current g++-4.3. (Closes: #454855). * Update ${Source-Version} to ${binary:Version}, thanks Lintian. * Update standards version to 3.7.3, no changes needed. * Update debian/copyright to current notice in source files. -- Daniel Schepler Wed, 09 Jan 2008 17:53:32 -0500 libcapsinetwork (0.3.0-4) unstable; urgency=low * Fix src/Makefile.am to generate proper dependencies, so that parallel builds will work. * Update to using automake 1.10. * Fix so that servers will not hang in a busy loop on 64-bit architectures. (Closes: #444803). -- Daniel Schepler Wed, 10 Oct 2007 08:01:53 -0400 libcapsinetwork (0.3.0-3) unstable; urgency=low * Add missing #include's to fix compilation with gcc-4.3. (Closes: #417322). * Update watch file: listing the download directory is now forbidden, so we have to go through the download page. -- Daniel Schepler Tue, 05 Jun 2007 11:32:23 -0400 libcapsinetwork (0.3.0-2) unstable; urgency=low * Recompile with new g++ due to allocator changes; rename libcapsinetwork0c2 -> libcapsinetwork0c2a. (Closes: #339196). * Updated watch file for new upstream homepage at www.robertjohnkaper.com. -- Daniel Schepler Mon, 21 Nov 2005 13:08:22 +0100 libcapsinetwork (0.3.0-1) unstable; urgency=low * g++-4.0 transition: libcapsinetwork0 -> libcapsinetwork0c2 * New upstream release. (Closes: #259937). + Note that this version changes the API (and the ABI); you should no longer define socketHandler, but should reimplement Listener::socketHandler. This change (Closes: #220057). * Update Standards-Version to 3.6.2 (no changes needed). -- Daniel Schepler Fri, 8 Jul 2005 16:17:01 -0700 libcapsinetwork (0.2.5-1) unstable; urgency=low * New upstream release. + Fixes a race condition. (Closes: #229584). * This version implements new methods, so bump the shlibs version. * Change to Standards-Version 3.6.1 (no changes needed). * Use automake1.7 instead of automake1.6. * Add debian/watch file. -- Daniel Schepler Tue, 27 Jan 2004 18:54:42 -0800 libcapsinetwork (0.2.3-2) unstable; urgency=low * Update for Standards-Version 3.6.0. + Use libtool 1.5 to get a library with proper binary dependencies. * Switch to cdbs. * Add code for example server to libcapsinetwork-dev. * Update section of libcapsinetwork-dev to libdevel, to match overrides. -- Daniel Schepler Sun, 3 Aug 2003 04:01:13 -0700 libcapsinetwork (0.2.3-1) unstable; urgency=low * Initial Release. -- Daniel Schepler Sat, 22 Feb 2003 23:52:09 -0800 debian/libcapsinetwork-dev.docs0000644000000000000000000000001412254100255014003 0ustar README TODO