Package pyrad :: Module host :: Class Host
[show private | hide private]
[frames | no frames]

Class Host

Known Subclasses:
Client, Server, RADIUS

Generic RADIUS capable host.
Method Summary
  __init__(self, authport, acctport, dict)
Constructor
pyrad.packet.Packet CreateAcctPacket(self, **args)
Create a new RADIUS packet.
pyrad.packet.Packet CreateAuthPacket(self, **args)
Create a new RADIUS packet.
  SendPacket(self, fd, pkt)
Send a packet.
  SendReplyPacket(self, fd, pkt)
Send a packet.

Instance Variable Summary
integer acctport: port to listen on for accounting packets
integer authport: port to listen on for authentication packets
pyrad.dictionary.Dictionary dict: RADIUS dictionary

Method Details

__init__(self, authport=1812, acctport=1813, dict=None)
(Constructor)

Constructor
Parameters:
authport - port to listen on for authentication packets
           (type=integer)
acctport - port to listen on for accounting packets
           (type=integer)
dict - RADIUS dictionary
           (type=pyrad.dictionary.Dictionary)

CreateAcctPacket(self, **args)

Create a new RADIUS packet.

This utility function creates a new RADIUS packet which can be used to communicate with the RADIUS server this client talks to. This is initializing the new packet with the dictionary and secret used for the client.
Returns:
a new empty packet instance
           (type=pyrad.packet.Packet)

CreateAuthPacket(self, **args)

Create a new RADIUS packet.

This utility function creates a new RADIUS packet which can be used to communicate with the RADIUS server this client talks to. This is initializing the new packet with the dictionary and secret used for the client.
Returns:
a new empty packet instance
           (type=pyrad.packet.Packet)

SendPacket(self, fd, pkt)

Send a packet.
Parameters:
fd - socket to send packet with
           (type=socket class instance)
pkt - packet to send
           (type=Packet class instance)

SendReplyPacket(self, fd, pkt)

Send a packet.
Parameters:
fd - socket to send packet with
           (type=socket class instance)
pkt - packet to send
           (type=Packet class instance)

Instance Variable Details

acctport

port to listen on for accounting packets
Type:
integer

authport

port to listen on for authentication packets
Type:
integer

dict

RADIUS dictionary
Type:
pyrad.dictionary.Dictionary

Generated by Epydoc 2.1 on Wed Jun 2 14:19:56 2004 http://epydoc.sf.net