#include <wvaddr.h>
Inherits WvIPAddr.
Collaboration diagram for WvIPPortAddr:
Note that the rawdata() function is inherited from WvIPAddr, so it does not include the port number in the raw data.
Definition at line 387 of file wvaddr.h.
Public Member Functions | |
WvIPPortAddr () | |
WvIPPortAddr (const unsigned char _ipaddr[4], __u16 _port=0) | |
WvIPPortAddr (const WvIPAddr &_ipaddr, __u16 _port=0) | |
WvIPPortAddr (const char string[]) | |
WvIPPortAddr (WvStringParm string) | |
void | string_init (const char string[]) |
WvIPPortAddr (__u16 _port) | |
WvIPPortAddr (const char string[], __u16 _port) | |
WvIPPortAddr (struct sockaddr_in *sin) | |
virtual | ~WvIPPortAddr () |
virtual bool | comparator (const WvAddr *a2, bool first_pass=true) const |
virtual const char * | type () const |
virtual struct sockaddr * | sockaddr () const |
virtual unsigned | WvHash () const |
WvIPAddr | operator & (const WvIPAddr &a2) const |
WvIPAddr | operator| (const WvIPAddr &a2) const |
WvIPAddr | operator^ (const WvIPAddr &a2) const |
WvIPAddr | operator~ () const |
WvIPAddr | operator+ (int n) const |
WvIPAddr | operator- (int n) const |
__u32 | addr () const |
bool | is_zero () const |
virtual WvEncap | encap () const |
virtual size_t | sockaddr_len () const |
virtual const unsigned char * | rawdata () const |
virtual size_t | rawdata_len () const |
operator WvString () const | |
virtual bool | isbroadcast () const |
bool | operator== (const WvAddr &a2) const |
bool | operator!= (const WvAddr &a2) const |
Static Public Member Functions | |
WvAddr * | gen (struct sockaddr *addr) |
Public Attributes | |
__u16 | port |
unsigned char | binaddr [4] |
Protected Member Functions | |
virtual WvString | printable () const |
|
Definition at line 644 of file wvaddr.cc. References port. |
|
Definition at line 396 of file wvaddr.h. References port. |
|
|
|
Definition at line 399 of file wvaddr.h. References string_init(). |
|
Definition at line 401 of file wvaddr.h. References string_init(), and WvStringParm. |
|
|
|
|
|
Definition at line 407 of file wvaddr.h. References port. |
|
|
|
Definition at line 277 of file wvaddr.h. References __u32. Referenced by WvIPNet::bits(), WvIPAddr::is_zero(), WvIPAddr::operator+(), WvIPAddr::operator-(), and WvIPAddr::sockaddr(). |
|
Reimplemented from WvIPAddr. Definition at line 728 of file wvaddr.cc. References WvAddr::comparator(), WvIPAddr::comparator(), port, WvAddr::type(), and WVIPPORTADDR. |
|
Implements WvAddr. |
|
Definition at line 89 of file wvaddr.cc. References WvEncap::cap, and WvAddr::encap(). Referenced by WvInterface::hwaddr(). |
|
Definition at line 280 of file wvaddr.h. References WvIPAddr::addr(). |
|
Reimplemented in WvEtherAddr. |
|
Definition at line 421 of file wvaddr.cc. References WvIPAddr::binaddr, and WvIPAddr::WvIPAddr(). |
|
Definition at line 123 of file wvaddr.h. References WvAddr::printable(). |
|
|
|
Definition at line 467 of file wvaddr.cc. References __u32, WvIPAddr::addr(), and WvIPAddr::WvIPAddr(). |
|
Definition at line 474 of file wvaddr.cc. References __u32, WvIPAddr::addr(), and WvIPAddr::WvIPAddr(). |
|
Definition at line 140 of file wvaddr.h. References WvAddr::comparator(). |
|
Definition at line 443 of file wvaddr.cc. References WvIPAddr::binaddr, and WvIPAddr::WvIPAddr(). |
|
Definition at line 432 of file wvaddr.cc. References WvIPAddr::binaddr, and WvIPAddr::WvIPAddr(). |
|
Definition at line 454 of file wvaddr.cc. References WvIPAddr::WvIPAddr(). |
|
Reimplemented from WvIPAddr. Definition at line 706 of file wvaddr.cc. References port. |
|
Reimplemented from WvAddr. Definition at line 487 of file wvaddr.cc. Referenced by WvIPAddr::comparator(). |
|
Reimplemented from WvAddr. Definition at line 493 of file wvaddr.cc. Referenced by WvIPAddr::comparator(). |
|
Reimplemented from WvIPAddr. Definition at line 715 of file wvaddr.cc. References port, WvIPAddr::sockaddr(), and sockaddr_bin. Referenced by WvTCPConn::do_connect(), WvUDPStream::uwrite(), WvTCPListener::WvTCPListener(), and WvUDPStream::WvUDPStream(). |
|
Implements WvAddr. Definition at line 514 of file wvaddr.cc. Referenced by WvInterface::addarp(), WvTCPConn::do_connect(), WvInterface::setipaddr(), WvUDPStream::uwrite(), WvIPRawStream::uwrite(), WvIPRawStream::WvIPRawStream(), WvTCPListener::WvTCPListener(), and WvUDPStream::WvUDPStream(). |
|
Reimplemented from WvIPAddr. Definition at line 658 of file wvaddr.cc. References port. Referenced by WvIPPortAddr(). |
|
Reimplemented from WvIPAddr. Definition at line 412 of file wvaddr.h. References WVIPPORTADDR. |
|
Reimplemented from WvAddr. Definition at line 723 of file wvaddr.cc. References port, and WvAddr::WvHash(). |
|
Definition at line 248 of file wvaddr.h. Referenced by WvIPNet::is_default(), WvIPNet::is_host(), WvIPAddr::operator &(), WvIPAddr::operator^(), WvIPAddr::operator|(), and WvIPAddr::WvIPAddr(). |
|
Definition at line 393 of file wvaddr.h. Referenced by WvTCPConn::check_resolver(), comparator(), printable(), sockaddr(), string_init(), WvHash(), WvIPPortAddr(), WvTCPConn::WvTCPConn(), and WvTCPListener::WvTCPListener(). |