# Poco::Net::Impl

# class IPv4SocketAddressImpl

Library: Net
Package: NetCore
Header: Poco/Net/SocketAddressImpl.h

## Inheritance

Direct Base Classes: SocketAddressImpl

All Base Classes: SocketAddressImpl

## Member Summary

Member Functions: addr, af, family, host, length, port, toString

Inherited Functions: addr, af, host, length, port

## Constructors

### IPv4SocketAddressImpl

IPv4SocketAddressImpl();

### IPv4SocketAddressImpl

IPv4SocketAddressImpl(
const struct sockaddr_in * addr
);

### IPv4SocketAddressImpl

IPv4SocketAddressImpl(
const void * addr,
UInt16 port
);

## Member Functions

### addr

const struct sockaddr * addr() const;

See also: Poco::Net::Impl::SocketAddressImpl::addr()

### af

int af() const;

See also: Poco::Net::Impl::SocketAddressImpl::af()

### family

IPAddress::Family family() const;

### host

IPAddress host() const;

See also: Poco::Net::Impl::SocketAddressImpl::host()

### length

socklen_t length() const;

See also: Poco::Net::Impl::SocketAddressImpl::length()

### port

UInt16 port() const;

See also: Poco::Net::Impl::SocketAddressImpl::port()

### toString

std::string toString() const;