Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

krfblogin.cpp File Reference

#include "krfblogin.h"
#include "krfbconnection.h"
#include <opie2/odebug.h>
#include <qtimer.h>
#include <assert.h>
#include "vncauth.h"

Include dependency graph for krfblogin.cpp:

Go to the source code of this file.

Defines

#define Swap16IfLE(s)   (*(char *)&endianTest ? ((((s) & 0xff) << 8) | (((s) >> 8) & 0xff)) : (s))
#define Swap32IfLE(l)

Typedefs

typedef unsigned char CARD8
typedef unsigned short CARD16
typedef unsigned long CARD32

Enumerations

enum  AuthResult { AuthOk, AuthFailed, AuthTooMany }

Variables

const int ServerVersionLength = 12
const int ClientVersionLength = 12
const int AuthSchemeLength = 4
const int FailureReasonSizeLength = 4
const int ChallengeLength = 16
const int AuthResultLength = 4
const int endianTest = 1


Define Documentation

#define Swap16IfLE s   )     (*(char *)&endianTest ? ((((s) & 0xff) << 8) | (((s) >> 8) & 0xff)) : (s))
 

Definition at line 40 of file krfblogin.cpp.

#define Swap32IfLE l   ) 
 

Value:

(*(char *)&endianTest ? ((((l) & 0xff000000) >> 24) | \
                             (((l) & 0x00ff0000) >> 8)  | \
                             (((l) & 0x0000ff00) << 8)  | \
                             (((l) & 0x000000ff) << 24))  : (l))

Definition at line 43 of file krfblogin.cpp.


Typedef Documentation

typedef unsigned short CARD16
 

Definition at line 34 of file krfblogin.cpp.

typedef unsigned long CARD32
 

Definition at line 35 of file krfblogin.cpp.

typedef unsigned char CARD8
 

Definition at line 33 of file krfblogin.cpp.


Enumeration Type Documentation

enum AuthResult
 

Enumeration values:
AuthOk 
AuthFailed 
AuthTooMany 

Definition at line 27 of file krfblogin.cpp.


Variable Documentation

const int AuthResultLength = 4
 

Definition at line 24 of file krfblogin.cpp.

Referenced by KRFBLogin::getPassword(), and KRFBLogin::gotAuthResult().

const int AuthSchemeLength = 4
 

Definition at line 21 of file krfblogin.cpp.

Referenced by KRFBLogin::gotAuthScheme(), and KRFBLogin::gotServerVersion().

const int ChallengeLength = 16
 

Definition at line 23 of file krfblogin.cpp.

Referenced by KRFBLogin::getPassword(), and KRFBLogin::gotAuthScheme().

const int ClientVersionLength = 12
 

Definition at line 20 of file krfblogin.cpp.

Referenced by KRFBLogin::sendClientVersion().

const int endianTest = 1
 

Definition at line 37 of file krfblogin.cpp.

const int FailureReasonSizeLength = 4
 

Definition at line 22 of file krfblogin.cpp.

Referenced by KRFBLogin::gotAuthScheme().

const int ServerVersionLength = 12
 

Definition at line 19 of file krfblogin.cpp.

Referenced by KRFBLogin::gotServerVersion(), and KRFBLogin::KRFBLogin().


Generated on Sat Nov 5 16:54:02 2005 for OPIE by  doxygen 1.4.2