Used by RWSockAddrFactory to create instances of RWInet6Addr. More...
#include <rw/network/RWInet6AddrFactory.h>
Public Member Functions | |
RWInet6AddrFactory () | |
virtual RWSockAddrBase * | operator() (struct sockaddr *addr, RWSockLenType addrLen) const |
virtual RWSockAddrBase * | operator() (struct sockaddr *addr, RWSockLenType addrLen, int type) const |
virtual RWSockAddrBase * | operator() (const RWCString &str) const |
Public Member Functions inherited from RWSockAddrFactoryBase | |
virtual | ~RWSockAddrFactoryBase () |
RWInet6AddrFactory is used by RWSockAddrFactory to create instances of RWInet6Addr. It is not used directly by clients of the Networking classes. Only a single instance of RWInet6AddrFactory exists, and it is created at the time the RWSockAddrFactory is constructed.
RWInet6AddrFactory::RWInet6AddrFactory | ( | ) |
Default constructor.
|
virtual |
Returns a pointer to an RWInet6Addr instance constructed from the provided sockaddr
structure and the given socket type.
The addr parameter is expected to point to an object that is compatible with sockaddr_in6
. The socket address family of addr is expected to be AF_INET6.
The addrLen parameter is expected to describe the size, in bytes, of the object pointed to by addr.
The newly created RWInet6Addr is allocated on the heap. The caller is responsible for deleting it. Often, this is managed by wrapping the object using an RWSockAddr.
Implements RWSockAddrFactoryBase.
|
virtual |
Returns a pointer to an RWInet6Addr instance constructed from the provided sockaddr
structure and the given socket type.
The addr parameter is expected to point to an object that is compatible with sockaddr_in6
. The socket address family of addr is expected to be AF_INET6.
The addrLen parameter is expected to describe the size, in bytes, of the object pointed to by addr.
The type parameter describes the type of socket address. This would normally be one of SOCK_STREAM
or SOCK_DGRAM
.
The newly created RWInet6Addr is allocated on the heap. The caller is responsible for deleting it. Often, this is managed by wrapping the object using an RWSockAddr.
Implements RWSockAddrFactoryBase.
|
virtual |
Returns a pointer to an RWInet6Addr instance constructed from from the provided RWCString.
The str parameter should be in the format described by the RWInet6Addr::id() method and should contain only 7-bit US-ASCII data.
The newly created RWInet6Addr is allocated on the heap. The caller is responsible for deleting it. Often, this is managed by wrapping the object using an RWSockAddr.
Implements RWSockAddrFactoryBase.
Copyright © 2021 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved. |