NAME

Victim - Ktalkd user package


DESCRIPTION

Victim

This is the container for local users. It also maintains some package global data structures that are inherited by its derivitive classes.

I suppose I'll docuemnt it later.

Victim::Remote

This class creates users that are essenially local place holders for remote users. Once created, the rest of the code shouldn't have to worry much about whether a user is local or not.

Therefore, the interface is identical to that of normal Victims.

Friends class

The Friends class is used to hold objects belonging to peer servers. The program initilization routines should call Friends->make_some() to connect to the peers listed in ktalkd.config. If for some reason a peer cannot be reached, or becomes disconnected, ktalkd will retry after ten (10) minutes.

In addition, this class defines the following methods:

new( $obj, $password )
$obj should be the Victim object on which someone has typed ``/server password'', $password should now be obvious. DNS is used to get the hostname for lookup in %friends, so systems to be peers must be reverse mapped. Please note, that once new() is done $obj will now be instansiated as a peer system, and no longer function in any other state.

new_outgoing( $name, $socket )
Takes a the name of a server, and the socket it is connected to. It then proceeds to ::logsinto that peer, and syncronize the user information.

dispatch() and disconnect()
These two methods proform the same function as those by the same name in the package Victim, only, in so far as it applies to peers.