diff options
Diffstat (limited to 'pysnmp/carrier')
24 files changed, 145 insertions, 25 deletions
diff --git a/pysnmp/carrier/asyncio/base.py b/pysnmp/carrier/asyncio/base.py index 08902ed8..e2360bf4 100644 --- a/pysnmp/carrier/asyncio/base.py +++ b/pysnmp/carrier/asyncio/base.py @@ -1,4 +1,9 @@ # +# This file is part of pysnmp software. +# +# Copyright (c) 2005-2015, Ilya Etingof <ilya@glas.net> +# License: http://pysnmp.sf.net/license.html +# # Copyright (C) 2014, Zebra Technologies # Authors: Matt Hooks <me@matthooks.com> # Zachary Lorusso <zlorusso@gmail.com> diff --git a/pysnmp/carrier/asyncio/dgram/base.py b/pysnmp/carrier/asyncio/dgram/base.py index 2052b442..4e3fe033 100644 --- a/pysnmp/carrier/asyncio/dgram/base.py +++ b/pysnmp/carrier/asyncio/dgram/base.py @@ -1,4 +1,9 @@ # +# This file is part of pysnmp software. +# +# Copyright (c) 2005-2015, Ilya Etingof <ilya@glas.net> +# License: http://pysnmp.sf.net/license.html +# # Copyright (C) 2014, Zebra Technologies # Authors: Matt Hooks <me@matthooks.com> # Zachary Lorusso <zlorusso@gmail.com> diff --git a/pysnmp/carrier/asyncio/dgram/udp.py b/pysnmp/carrier/asyncio/dgram/udp.py index b6d1c4c1..bf0aae4c 100644 --- a/pysnmp/carrier/asyncio/dgram/udp.py +++ b/pysnmp/carrier/asyncio/dgram/udp.py @@ -1,4 +1,9 @@ # +# This file is part of pysnmp software. +# +# Copyright (c) 2005-2015, Ilya Etingof <ilya@glas.net> +# License: http://pysnmp.sf.net/license.html +# # Copyright (C) 2014, Zebra Technologies # Authors: Matt Hooks <me@matthooks.com> # Zachary Lorusso <zlorusso@gmail.com> diff --git a/pysnmp/carrier/asyncio/dgram/udp6.py b/pysnmp/carrier/asyncio/dgram/udp6.py index b80187d2..d287e648 100644 --- a/pysnmp/carrier/asyncio/dgram/udp6.py +++ b/pysnmp/carrier/asyncio/dgram/udp6.py @@ -1,3 +1,9 @@ +# +# This file is part of pysnmp software. +# +# Copyright (c) 2005-2015, Ilya Etingof <ilya@glas.net> +# License: http://pysnmp.sf.net/license.html +# import socket from pysnmp.carrier.base import AbstractTransportAddress from pysnmp.carrier.asyncio.dgram.base import DgramAsyncioProtocol diff --git a/pysnmp/carrier/asyncio/dispatch.py b/pysnmp/carrier/asyncio/dispatch.py index 4bc54b62..4365f792 100644 --- a/pysnmp/carrier/asyncio/dispatch.py +++ b/pysnmp/carrier/asyncio/dispatch.py @@ -1,4 +1,9 @@ # +# This file is part of pysnmp software. +# +# Copyright (c) 2005-2015, Ilya Etingof <ilya@glas.net> +# License: http://pysnmp.sf.net/license.html +# # Copyright (C) 2014, Zebra Technologies # Authors: Matt Hooks <me@matthooks.com> # Zachary Lorusso <zlorusso@gmail.com> diff --git a/pysnmp/carrier/asyncore/base.py b/pysnmp/carrier/asyncore/base.py index 006ca6ea..28d532e4 100644 --- a/pysnmp/carrier/asyncore/base.py +++ b/pysnmp/carrier/asyncore/base.py @@ -1,4 +1,9 @@ -# Defines standard API to asyncore-based transport +# +# This file is part of pysnmp software. +# +# Copyright (c) 2005-2015, Ilya Etingof <ilya@glas.net> +# License: http://pysnmp.sf.net/license.html +# import socket, sys import asyncore from pysnmp.carrier import error diff --git a/pysnmp/carrier/asyncore/dgram/base.py b/pysnmp/carrier/asyncore/dgram/base.py index 537a281d..930feb3f 100644 --- a/pysnmp/carrier/asyncore/dgram/base.py +++ b/pysnmp/carrier/asyncore/dgram/base.py @@ -1,4 +1,9 @@ -# Implements asyncore-based generic DGRAM transport +# +# This file is part of pysnmp software. +# +# Copyright (c) 2005-2015, Ilya Etingof <ilya@glas.net> +# License: http://pysnmp.sf.net/license.html +# import socket, errno, sys from pysnmp.carrier.asyncore.base import AbstractSocketTransport from pysnmp.carrier import sockfix, sockmsg, error diff --git a/pysnmp/carrier/asyncore/dgram/udp.py b/pysnmp/carrier/asyncore/dgram/udp.py index d35aab61..e0391676 100644 --- a/pysnmp/carrier/asyncore/dgram/udp.py +++ b/pysnmp/carrier/asyncore/dgram/udp.py @@ -1,4 +1,9 @@ -# Implements asyncore-based UDP transport domain +# +# This file is part of pysnmp software. +# +# Copyright (c) 2005-2015, Ilya Etingof <ilya@glas.net> +# License: http://pysnmp.sf.net/license.html +# from socket import AF_INET from pysnmp.carrier.base import AbstractTransportAddress from pysnmp.carrier.asyncore.dgram.base import DgramSocketTransport diff --git a/pysnmp/carrier/asyncore/dgram/udp6.py b/pysnmp/carrier/asyncore/dgram/udp6.py index c6a69c0a..9c43e073 100644 --- a/pysnmp/carrier/asyncore/dgram/udp6.py +++ b/pysnmp/carrier/asyncore/dgram/udp6.py @@ -1,4 +1,9 @@ -# Implements asyncore-based UDP6 transport domain +# +# This file is part of pysnmp software. +# +# Copyright (c) 2005-2015, Ilya Etingof <ilya@glas.net> +# License: http://pysnmp.sf.net/license.html +# from pysnmp.carrier import sockfix from pysnmp.carrier.base import AbstractTransportAddress from pysnmp.carrier.asyncore.dgram.base import DgramSocketTransport diff --git a/pysnmp/carrier/asyncore/dgram/unix.py b/pysnmp/carrier/asyncore/dgram/unix.py index 8e297934..2b0de5ca 100644 --- a/pysnmp/carrier/asyncore/dgram/unix.py +++ b/pysnmp/carrier/asyncore/dgram/unix.py @@ -1,4 +1,9 @@ -# Implements asyncore-based UNIX transport domain +# +# This file is part of pysnmp software. +# +# Copyright (c) 2005-2015, Ilya Etingof <ilya@glas.net> +# License: http://pysnmp.sf.net/license.html +# import os import random try: diff --git a/pysnmp/carrier/asyncore/dispatch.py b/pysnmp/carrier/asyncore/dispatch.py index 2124bfd8..ee04330a 100644 --- a/pysnmp/carrier/asyncore/dispatch.py +++ b/pysnmp/carrier/asyncore/dispatch.py @@ -1,4 +1,9 @@ -# Implements I/O over asynchronous sockets +# +# This file is part of pysnmp software. +# +# Copyright (c) 2005-2015, Ilya Etingof <ilya@glas.net> +# License: http://pysnmp.sf.net/license.html +# from time import time from sys import exc_info from traceback import format_exception diff --git a/pysnmp/carrier/asynsock/dgram/udp.py b/pysnmp/carrier/asynsock/dgram/udp.py index d4498374..9a61eeab 100644 --- a/pysnmp/carrier/asynsock/dgram/udp.py +++ b/pysnmp/carrier/asynsock/dgram/udp.py @@ -1,2 +1,7 @@ -# Obsolete, compatibility interface +# +# This file is part of pysnmp software. +# +# Copyright (c) 2005-2015, Ilya Etingof <ilya@glas.net> +# License: http://pysnmp.sf.net/license.html +# from pysnmp.carrier.asyncore.dgram.udp import * diff --git a/pysnmp/carrier/asynsock/dgram/udp6.py b/pysnmp/carrier/asynsock/dgram/udp6.py index d57044b1..a1de18db 100644 --- a/pysnmp/carrier/asynsock/dgram/udp6.py +++ b/pysnmp/carrier/asynsock/dgram/udp6.py @@ -1,2 +1,7 @@ -# Obsolete, compatibility interface +# +# This file is part of pysnmp software. +# +# Copyright (c) 2005-2015, Ilya Etingof <ilya@glas.net> +# License: http://pysnmp.sf.net/license.html +# from pysnmp.carrier.asyncore.dgram.udp6 import * diff --git a/pysnmp/carrier/asynsock/dgram/unix.py b/pysnmp/carrier/asynsock/dgram/unix.py index 86cacdc2..5af01123 100644 --- a/pysnmp/carrier/asynsock/dgram/unix.py +++ b/pysnmp/carrier/asynsock/dgram/unix.py @@ -1,2 +1,7 @@ -# Obsolete, compatibility interface +# +# This file is part of pysnmp software. +# +# Copyright (c) 2005-2015, Ilya Etingof <ilya@glas.net> +# License: http://pysnmp.sf.net/license.html +# from pysnmp.carrier.asyncore.dgram.unix import * diff --git a/pysnmp/carrier/asynsock/dispatch.py b/pysnmp/carrier/asynsock/dispatch.py index a09db93e..66e46f63 100644 --- a/pysnmp/carrier/asynsock/dispatch.py +++ b/pysnmp/carrier/asynsock/dispatch.py @@ -1,4 +1,9 @@ -# Obsolete, compatibility interface +# +# This file is part of pysnmp software. +# +# Copyright (c) 2005-2015, Ilya Etingof <ilya@glas.net> +# License: http://pysnmp.sf.net/license.html +# from pysnmp.carrier.asyncore.dispatch import * AsynsockDispatcher = AsyncoreDispatcher diff --git a/pysnmp/carrier/base.py b/pysnmp/carrier/base.py index e7f09bc0..cdd08c2b 100644 --- a/pysnmp/carrier/base.py +++ b/pysnmp/carrier/base.py @@ -1,4 +1,9 @@ -# Abstract I/O dispatcher. Defines standard dispatcher API +# +# This file is part of pysnmp software. +# +# Copyright (c) 2005-2015, Ilya Etingof <ilya@glas.net> +# License: http://pysnmp.sf.net/license.html +# from pysnmp.carrier import error class TimerCallable: diff --git a/pysnmp/carrier/error.py b/pysnmp/carrier/error.py index c3c28d51..721040e9 100644 --- a/pysnmp/carrier/error.py +++ b/pysnmp/carrier/error.py @@ -1,3 +1,9 @@ +# +# This file is part of pysnmp software. +# +# Copyright (c) 2005-2015, Ilya Etingof <ilya@glas.net> +# License: http://pysnmp.sf.net/license.html +# from pysnmp import error class CarrierError(error.PySnmpError): diff --git a/pysnmp/carrier/sockfix.py b/pysnmp/carrier/sockfix.py index 9d36e28d..a7513636 100644 --- a/pysnmp/carrier/sockfix.py +++ b/pysnmp/carrier/sockfix.py @@ -1,5 +1,8 @@ # -# Add some of the missing socket module symbols +# This file is part of pysnmp software. +# +# Copyright (c) 2005-2015, Ilya Etingof <ilya@glas.net> +# License: http://pysnmp.sf.net/license.html # import socket diff --git a/pysnmp/carrier/sockmsg.py b/pysnmp/carrier/sockmsg.py index d84c6aa6..a125770a 100644 --- a/pysnmp/carrier/sockmsg.py +++ b/pysnmp/carrier/sockmsg.py @@ -1,4 +1,9 @@ # +# This file is part of pysnmp software. +# +# Copyright (c) 2005-2015, Ilya Etingof <ilya@glas.net> +# License: http://pysnmp.sf.net/license.html +# # The following routines act like sendto()/recvfrom() calls but additionally # support local address retrieval (what can be useful when listening on # 0.0.0.0 or [::]) and source address spoofing (for transparent proxying). diff --git a/pysnmp/carrier/twisted/base.py b/pysnmp/carrier/twisted/base.py index b3024468..3bf03bbb 100644 --- a/pysnmp/carrier/twisted/base.py +++ b/pysnmp/carrier/twisted/base.py @@ -1,11 +1,16 @@ # -# Copyright (C) 2008 Truelite Srl <info@truelite.it> -# Author: Filippo Giunchedi <filippo@truelite.it> +# This file is part of pysnmp software. # -# This program is free software; you can redistribute it and/or modify -# it under the terms of the BSD 2-Clause License as shipped with pysnmp. +# Copyright (c) 2005-2015, Ilya Etingof <ilya@glas.net> +# License: http://pysnmp.sf.net/license.html # -# Description: twisted DatagramProtocol UDP transport +# Copyright (C) 2008 Truelite Srl <info@truelite.it> +# Author: Filippo Giunchedi <filippo@truelite.it> +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the BSD 2-Clause License as shipped with pysnmp. +# +# Description: twisted DatagramProtocol UDP transport # from pysnmp.carrier.twisted.dispatch import TwistedDispatcher from pysnmp.carrier.base import AbstractTransport diff --git a/pysnmp/carrier/twisted/dgram/base.py b/pysnmp/carrier/twisted/dgram/base.py index 883311a6..3f26be71 100644 --- a/pysnmp/carrier/twisted/dgram/base.py +++ b/pysnmp/carrier/twisted/dgram/base.py @@ -1,4 +1,9 @@ -# Implements twisted-based generic DGRAM transport +# +# This file is part of pysnmp software. +# +# Copyright (c) 2005-2015, Ilya Etingof <ilya@glas.net> +# License: http://pysnmp.sf.net/license.html +# import sys from twisted.internet.protocol import DatagramProtocol from twisted.internet import reactor diff --git a/pysnmp/carrier/twisted/dgram/udp.py b/pysnmp/carrier/twisted/dgram/udp.py index ef1c2e54..006ff5ea 100644 --- a/pysnmp/carrier/twisted/dgram/udp.py +++ b/pysnmp/carrier/twisted/dgram/udp.py @@ -1,4 +1,9 @@ -# Implements twisted-based UDP transport +# +# This file is part of pysnmp software. +# +# Copyright (c) 2005-2015, Ilya Etingof <ilya@glas.net> +# License: http://pysnmp.sf.net/license.html +# import sys from twisted.internet import reactor from pysnmp.carrier.base import AbstractTransportAddress diff --git a/pysnmp/carrier/twisted/dgram/unix.py b/pysnmp/carrier/twisted/dgram/unix.py index 31324b74..6ed7bec1 100644 --- a/pysnmp/carrier/twisted/dgram/unix.py +++ b/pysnmp/carrier/twisted/dgram/unix.py @@ -1,4 +1,9 @@ -# Implements twisted-based UNIX domain socket transport +# +# This file is part of pysnmp software. +# +# Copyright (c) 2005-2015, Ilya Etingof <ilya@glas.net> +# License: http://pysnmp.sf.net/license.html +# import sys from twisted.internet import reactor from pysnmp.carrier.base import AbstractTransportAddress diff --git a/pysnmp/carrier/twisted/dispatch.py b/pysnmp/carrier/twisted/dispatch.py index 858bbd0f..1ec0f114 100644 --- a/pysnmp/carrier/twisted/dispatch.py +++ b/pysnmp/carrier/twisted/dispatch.py @@ -1,11 +1,16 @@ # -# Copyright (C) 2008 Truelite Srl <info@truelite.it> -# Author: Filippo Giunchedi <filippo@truelite.it> +# This file is part of pysnmp software. # -# This program is free software; you can redistribute it and/or modify -# it under the terms of the BSD 2-Clause License as shipped with pysnmp. +# Copyright (c) 2005-2015, Ilya Etingof <ilya@glas.net> +# License: http://pysnmp.sf.net/license.html # -# Description: Transport dispatcher based on twisted.internet.reactor +# Copyright (C) 2008 Truelite Srl <info@truelite.it> +# Author: Filippo Giunchedi <filippo@truelite.it> +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the BSD 2-Clause License as shipped with pysnmp. +# +# Description: Transport dispatcher based on twisted.internet.reactor # import sys, time, traceback from twisted.internet import reactor, task |