/** * constructor of steam_connector: * * The functions initializes some variables through init() when envoked. * Arguments are all optional. If arguments are given, steam_connector * tries to connect to the defined sTeam-server. * Examples: * - <code>$steam = new steam_connector( "steam.upb.de", 1900, "aroth", "secret" );</code> * * @param string $pServerIP IP or hostname of a sTeam-server * @param integer $pServerPort server's port for COAL-protocol * @param string $pLogin user's login * @param string $pPassword user's password */ private function __construct($pServerIp, $pServerPort, $pLoginName, $pLoginPassword) { if (!is_string($pServerIp)) { throw new ParameterException("pServerIp", "string"); } if (!is_integer($pServerPort)) { throw new ParameterException("pServerPort", "integer"); } if (!is_string($pLoginName)) { throw new ParameterException("pLoginName", "string"); } if (!is_string($pLoginPassword)) { throw new ParameterException("pLoginPassword", "string"); } $this->ServerIp = $pServerIp; $this->ServerPort = $pServerPort; $this->LoginName = $pLoginName; self::$instances[$this->get_id()] = $this; steam_connection::init($pServerIp, $pServerPort, $pLoginName, $pLoginPassword); }