Planeshift
Public Member Functions | Public Attributes

psAuthenticationMessage Class Reference

The message sent from client to server on login. More...

#include <messages.h>

List of all members.

Public Member Functions

bool NetVersionOk ()
 psAuthenticationMessage (MsgEntry *message)
 This constructor receives a PS Message struct and cracks it apart to provide more easily usable fields.
 psAuthenticationMessage (uint32_t clientnum, const char *userid, const char *password, const char *os, uint16 os_ver_major, uint16 os_ver_minor, const char *os_platform, const char *machine_type, const char *gfxcard, const char *gfxversion, const char *sPassword256="", uint32_t version=PS_NETVERSION)
 This function creates a PS Message struct given a userid and password to send out.
 PSF_DECLARE_MSG_FACTORY ()
virtual csString ToString (NetBase::AccessPointers *accessPointers)
 Converts the message into human readable string.

Public Attributes

csString gfxcard_
csString gfxversion_
csString machine_type
uint32_t netversion
csString os_
csString os_platform
uint16 os_ver_major
uint16 os_ver_minor
csString sAddr
csString sPassword
csString sPassword256
csString sUser

Detailed Description

The message sent from client to server on login.

Definition at line 587 of file messages.h.


Constructor & Destructor Documentation

psAuthenticationMessage::psAuthenticationMessage ( uint32_t  clientnum,
const char *  userid,
const char *  password,
const char *  os,
uint16  os_ver_major,
uint16  os_ver_minor,
const char *  os_platform,
const char *  machine_type,
const char *  gfxcard,
const char *  gfxversion,
const char *  sPassword256 = "",
uint32_t  version = PS_NETVERSION 
)

This function creates a PS Message struct given a userid and password to send out.

This would be used for outgoing, new message creation when a user wants to log in.

psAuthenticationMessage::psAuthenticationMessage ( MsgEntry message)

This constructor receives a PS Message struct and cracks it apart to provide more easily usable fields.

It is intended for use on incoming messages.


Member Function Documentation

bool psAuthenticationMessage::NetVersionOk ( )

Reimplemented in psNPCAuthenticationMessage.

psAuthenticationMessage::PSF_DECLARE_MSG_FACTORY ( )

Reimplemented in psNPCAuthenticationMessage.

virtual csString psAuthenticationMessage::ToString ( NetBase::AccessPointers accessPointers) [virtual]

Converts the message into human readable string.

Parameters:
accessPointersA struct to a number of access pointers.
Returns:
Return a human readable string for the message.

Implements psMessageCracker.


Member Data Documentation

Definition at line 591 of file messages.h.

Definition at line 591 of file messages.h.

Definition at line 591 of file messages.h.

Definition at line 590 of file messages.h.

Definition at line 591 of file messages.h.

Definition at line 591 of file messages.h.

Definition at line 599 of file messages.h.

Definition at line 599 of file messages.h.

Definition at line 591 of file messages.h.

Definition at line 591 of file messages.h.

Definition at line 591 of file messages.h.

Definition at line 591 of file messages.h.


The documentation for this class was generated from the following file: