Constructs an RWSockType for an Internet address type.
More...
#include <rw/network/RWInetType.h>
RWInetType enables you to construct an RWSockType for an Internet address type. This class adds no state, so instances can be converted to RWSockType with no loss of information.
◆ RWInetType() [1/2]
RWInetType::RWInetType |
( |
| ) |
|
|
inline |
The family name is set to inet
, the family id is set to AF_INET
, the socket type is set to SOCK_STREAM
, and the protocol is set to 0
.
◆ RWInetType() [2/2]
RWInetType::RWInetType |
( |
int | type, |
|
|
int | protocol = 0 ) |
|
explicit |
The family name is set to inet
and the family id is set to AF_INET
.