wyvern.world
Class Customs

java.lang.Object
  extended bywyvern.world.Customs

public class Customs
extends java.lang.Object

Handles transferring players between servers.

Version:
1.0, Apr 24, 2000
Author:
Steve Yegge

Method Summary
static java.lang.String acceptTransfer(java.lang.String name, java.lang.String homeworld, java.lang.String player_file)
          Handles a request for a transfer from another server.
static void requestTransfer(java.lang.String host, int port, Player player)
          Attempts to transfer a player to another server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

requestTransfer

public static void requestTransfer(java.lang.String host,
                                   int port,
                                   Player player)
Attempts to transfer a player to another server.

Parameters:
host - the destination hostname, e.g. jade.cabochon.com
port - the port (use wyvern.server.RPCServer.HTTP_PORT if unsure)
player - the player to transfer

acceptTransfer

public static java.lang.String acceptTransfer(java.lang.String name,
                                              java.lang.String homeworld,
                                              java.lang.String player_file)
Handles a request for a transfer from another server.

Parameters:
name - the name of the player to transfer
homeworld - the IP or DNS name of the player's homeworld
player_file - the player's XML save file
Returns:
"OK" if the transfer was successful, else an error message to return to the originating server.