Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
NetAddr Class Reference

#include <NetAddr.h>

List of all members.

Public Member Functions

 NetAddr (const char *a, WORD p=0)
 NetAddr (DWORD a=0, WORD p=0)
 NetAddr (const NetAddr &n)
int operator== (const NetAddr &a) const
DWORD IPAddr () const
BYTE B4 () const
BYTE B3 () const
BYTE B2 () const
BYTE B1 () const
WORD Port () const
void SetPort (WORD p)
sockaddr * GetSockAddr () const
size_t GetSockAddrLength () const
void SetSockAddr (sockaddr *s, int size)
void InitFromSockAddr ()

Static Public Member Functions

static const char * TYPENAME ()

Detailed Description

Definition at line 23 of file NetAddr.h.


Constructor & Destructor Documentation

NetAddr::NetAddr ( const char *  a,
WORD  p = 0 
)

Definition at line 22 of file NetAddr.cpp.

NetAddr::NetAddr ( DWORD  a = 0,
WORD  p = 0 
)

Definition at line 46 of file NetAddr.cpp.

NetAddr::NetAddr ( const NetAddr n)

Definition at line 52 of file NetAddr.cpp.


Member Function Documentation

BYTE NetAddr::B1 ( ) const
inline

Definition at line 38 of file NetAddr.h.

BYTE NetAddr::B2 ( ) const
inline

Definition at line 37 of file NetAddr.h.

BYTE NetAddr::B3 ( ) const
inline

Definition at line 36 of file NetAddr.h.

BYTE NetAddr::B4 ( ) const
inline

Definition at line 35 of file NetAddr.h.

sockaddr * NetAddr::GetSockAddr ( ) const

Definition at line 80 of file NetAddr.cpp.

size_t NetAddr::GetSockAddrLength ( ) const

Definition at line 86 of file NetAddr.cpp.

void NetAddr::InitFromSockAddr ( )

Definition at line 71 of file NetAddr.cpp.

DWORD NetAddr::IPAddr ( ) const
inline

Definition at line 34 of file NetAddr.h.

int NetAddr::operator== ( const NetAddr a) const
inline

Definition at line 32 of file NetAddr.h.

WORD NetAddr::Port ( ) const
inline

Definition at line 40 of file NetAddr.h.

void NetAddr::SetPort ( WORD  p)
inline

Definition at line 41 of file NetAddr.h.

void NetAddr::SetSockAddr ( sockaddr *  s,
int  size 
)

Definition at line 94 of file NetAddr.cpp.

static const char* NetAddr::TYPENAME ( )
inlinestatic

Definition at line 26 of file NetAddr.h.


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