EMANE  1.2.1
EMANE::DatagramSocket Class Reference

#include <datagramsocket.h>

Inheritance diagram for EMANE::DatagramSocket:
EMANE::Socket

Public Member Functions

 DatagramSocket ()
 
 DatagramSocket (const INETAddr &address, bool bReuseAddress=false)
 
 ~DatagramSocket ()
 
void open (const INETAddr &address, bool bReuseAddress=false)
 
ssize_t send (const iovec *iov, int iovcnt, const INETAddr &remoteAddress, int flags=0) const
 
ssize_t recv (void *buf, size_t len, int flags=0)
 
int getHandle ()
 
INETAddr getLocalAddress () const
 
void close ()
 
ssize_t sendto (const void *buf, size_t len, int flags, const INETAddr &address)
 

Protected Attributes

int iSock_
 

Detailed Description

Definition at line 45 of file datagramsocket.h.

Constructor & Destructor Documentation

◆ DatagramSocket() [1/2]

EMANE::DatagramSocket::DatagramSocket ( )

Definition at line 38 of file datagramsocket.cc.

◆ DatagramSocket() [2/2]

EMANE::DatagramSocket::DatagramSocket ( const INETAddr address,
bool  bReuseAddress = false 
)

Definition at line 40 of file datagramsocket.cc.

◆ ~DatagramSocket()

EMANE::DatagramSocket::~DatagramSocket ( )

Definition at line 89 of file datagramsocket.cc.

Member Function Documentation

◆ close()

void EMANE::Socket::close ( )
inherited

Definition at line 40 of file socket.cc.

◆ getHandle()

int EMANE::DatagramSocket::getHandle ( )

Definition at line 91 of file datagramsocket.cc.

◆ getLocalAddress()

EMANE::INETAddr EMANE::DatagramSocket::getLocalAddress ( ) const

Definition at line 121 of file datagramsocket.cc.

◆ open()

void EMANE::DatagramSocket::open ( const INETAddr address,
bool  bReuseAddress = false 
)

Definition at line 47 of file datagramsocket.cc.

◆ recv()

ssize_t EMANE::DatagramSocket::recv ( void *  buf,
size_t  len,
int  flags = 0 
)

Definition at line 114 of file datagramsocket.cc.

◆ send()

ssize_t EMANE::DatagramSocket::send ( const iovec *  iov,
int  iovcnt,
const INETAddr remoteAddress,
int  flags = 0 
) const

Definition at line 97 of file datagramsocket.cc.

◆ sendto()

ssize_t EMANE::Socket::sendto ( const void *  buf,
size_t  len,
int  flags,
const INETAddr address 
)
inherited

Definition at line 49 of file socket.cc.

Member Data Documentation

◆ iSock_

int EMANE::Socket::iSock_
protectedinherited

Definition at line 55 of file socket.h.


The documentation for this class was generated from the following files: