Poco::Net

class DatagramSocketImpl

Library: Net
Package: Sockets
Header: Poco/Net/DatagramSocketImpl.h

Description

This class implements an UDP socket.

Inheritance

Direct Base Classes: SocketImpl

All Base Classes: SocketImpl, Poco::RefCountedObject

Member Summary

Member Functions: init

Inherited Functions: acceptConnection, address, available, bind, bind6, checkBrokenTimeout, close, connect, connectNB, duplicate, error, fcntl, getBlocking, getBroadcast, getError, getKeepAlive, getLinger, getNoDelay, getOOBInline, getOption, getRawOption, getReceiveBufferSize, getReceiveTimeout, getReuseAddress, getReusePort, getSendBufferSize, getSendTimeout, init, initSocket, initialized, ioctl, lastError, listen, peerAddress, poll, receiveBytes, receiveFrom, referenceCount, release, reset, secure, sendBytes, sendFile, sendTo, sendUrgent, setBlocking, setBroadcast, setKeepAlive, setLinger, setNoDelay, setOOBInline, setOption, setRawOption, setReceiveBufferSize, setReceiveTimeout, setReuseAddress, setReusePort, setSendBufferSize, setSendTimeout, shutdown, shutdownReceive, shutdownSend, socketError, sockfd, type, useFileDescriptor

Constructors

DatagramSocketImpl

DatagramSocketImpl();

Creates an unconnected, unbound datagram socket.

DatagramSocketImpl

explicit DatagramSocketImpl(
    SocketAddress::Family family
);

Creates an unconnected datagram socket.

The socket will be created for the given address family.

DatagramSocketImpl

DatagramSocketImpl(
    int sockfd
);

Creates a StreamSocketImpl using the given native socket.

Destructor

~DatagramSocketImpl protected virtual

~DatagramSocketImpl();

Member Functions

init protected virtual

void init(
    int af
);