From 6d8494f75d31678901433ae035ea9d41fea5a223 Mon Sep 17 00:00:00 2001 From: davidb Date: Mon, 28 Apr 2003 16:43:19 +0000 Subject: [PATCH] copyright and license notices --- bin/pyrwhoisd | 21 +++++++++++++++++++++ rwhoisd/Cidr.py | 21 +++++++++++++++++++++ rwhoisd/MemIndex.py | 21 +++++++++++++++++++++ rwhoisd/QueryParser.py | 21 +++++++++++++++++++++ rwhoisd/RwhoisServer.py | 22 ++++++++++++++++++++-- rwhoisd/Session.py | 21 +++++++++++++++++++++ 6 files changed, 125 insertions(+), 2 deletions(-) diff --git a/bin/pyrwhoisd b/bin/pyrwhoisd index 7532b5b..1ed7595 100755 --- a/bin/pyrwhoisd +++ b/bin/pyrwhoisd @@ -1,6 +1,27 @@ #! /usr/bin/env python +# This file is part of python-rwhoisd +# +# Copyright (C) 2003, David E. Blacka +# +# $Id: pyrwhoisd,v 1.2 2003/04/28 16:46:50 davidb Exp $ +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +# USA # -*- python -*- + import sys, os # determine if the rwhoisd package is in the standard spot relative to diff --git a/rwhoisd/Cidr.py b/rwhoisd/Cidr.py index 37b32a3..9a63467 100644 --- a/rwhoisd/Cidr.py +++ b/rwhoisd/Cidr.py @@ -1,3 +1,24 @@ +# This file is part of python-rwhoisd +# +# Copyright (C) 2003, David E. Blacka +# +# $Id: Cidr.py,v 1.3 2003/04/28 16:43:19 davidb Exp $ +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +# USA + import socket, types, copy, bisect, re class Cidr: diff --git a/rwhoisd/MemIndex.py b/rwhoisd/MemIndex.py index 24a64e2..4d3c5e3 100644 --- a/rwhoisd/MemIndex.py +++ b/rwhoisd/MemIndex.py @@ -1,3 +1,24 @@ +# This file is part of python-rwhoisd +# +# Copyright (C) 2003, David E. Blacka +# +# $Id: MemIndex.py,v 1.2 2003/04/28 16:43:19 davidb Exp $ +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +# USA + import bisect, types import Cidr diff --git a/rwhoisd/QueryParser.py b/rwhoisd/QueryParser.py index 32fb47f..56fafd0 100644 --- a/rwhoisd/QueryParser.py +++ b/rwhoisd/QueryParser.py @@ -1,3 +1,24 @@ +# This file is part of python-rwhoisd +# +# Copyright (C) 2003, David E. Blacka +# +# $Id: QueryParser.py,v 1.2 2003/04/28 16:43:19 davidb Exp $ +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +# USA + # queryparser.db must be set to a DB class instance. db = None diff --git a/rwhoisd/RwhoisServer.py b/rwhoisd/RwhoisServer.py index cf3b8a7..e989ce0 100644 --- a/rwhoisd/RwhoisServer.py +++ b/rwhoisd/RwhoisServer.py @@ -1,4 +1,23 @@ -#! /usr/bin/python +# This file is part of python-rwhoisd +# +# Copyright (C) 2003, David E. Blacka +# +# $Id: RwhoisServer.py,v 1.3 2003/04/28 16:45:11 davidb Exp $ +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +# USA import sys, socket, SocketServer @@ -42,7 +61,6 @@ class RwhoisHandler(SocketServer.StreamRequestHandler): def handle(self): - print repr(self.request) self.quit_flag = False # output a banner diff --git a/rwhoisd/Session.py b/rwhoisd/Session.py index 24924af..7f7d20e 100644 --- a/rwhoisd/Session.py +++ b/rwhoisd/Session.py @@ -1,3 +1,24 @@ +# This file is part of python-rwhoisd +# +# Copyright (C) 2003, David E. Blacka +# +# $Id: Session.py,v 1.2 2003/04/28 16:43:19 davidb Exp $ +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +# USA + import config class Context: -- 2.36.6