26 static const char*
TYPENAME() {
return "NetAddr"; }
28 NetAddr(
const char* a, WORD p=0);
34 DWORD
IPAddr()
const {
return addr; }
35 BYTE
B4()
const {
return (BYTE) ((addr & 0xff000000) >> 24); }
36 BYTE
B3()
const {
return (BYTE) ((addr & 0x00ff0000) >> 16); }
37 BYTE
B2()
const {
return (BYTE) ((addr & 0x0000ff00) >> 8); }
38 BYTE
B1()
const {
return (BYTE) ((addr & 0x000000ff) ); }
40 WORD
Port()
const {
return port; }