2005/5/9

     
 

class DatagramSocket

artefaktur
Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   Namespace Members   Compound Members   Related Pages  

acdk::net::DatagramSocket Class Reference

#include <DatagramSocket.h>

Inheritance diagram for acdk::net::DatagramSocket:

acdk::lang::Object acdk::lang::ObjectBase acdk::lang::dmi::StdDispatch List of all members.

Detailed Description

Implements UDP Server/Client API: Java, simplified.

Different to the Java class hierarchy this implementation does not has a DatagramSocketImpl, but relies directly on the TCPSocket.

Author:
Roger Rene Kommer
Version:
Revision
1.2
Date:
Date
2005/03/26 16:12:54


Public Member Functions

 DatagramSocket ()
 DatagramSocket (int port)
 DatagramSocket (int port, IN(RInetAddress) laddr)
 DatagramSocket (IN(RInetSocketAddress) bindaddr)
void bind (IN(RInetSocketAddress) addr)
void close ()
void connect (IN(RInetAddress) address, int port)
void connect (IN(RInetSocketAddress) addr)
void disconnect ()
bool getBroadcast ()
void setBroadcast (bool on)
RInetAddress getInetAddress ()
RInetAddress getLocalAddress ()
int getLocalPort ()
RInetSocketAddress getLocalSocketAddress ()
int getPort ()
int getReceiveBufferSize ()
RInetSocketAddress getRemoteSocketAddress ()
bool getReuseAddress ()
void setReuseAddress (bool on)
int getSendBufferSize ()
void setSendBufferSize (int size)
void setReceiveBufferSize (int size)
int getSoTimeout ()
void setSoTimeout (int timeout)
int getTrafficClass ()
void setTrafficClass (int tc)
bool isBound ()
bool isClosed ()
bool isConnected ()
void receive (IN(RDatagramPacket) p)
void send (IN(RDatagramPacket) p)

Protected Attributes

int _connected
acdk::io::RFileDescriptor _fd
RTCPSocket _socket
RInetSocketAddress _remoteAddress
RInetSocketAddress _localAddress


Constructor & Destructor Documentation

acdk::net::DatagramSocket::DatagramSocket  ) 
 

acdk::net::DatagramSocket::DatagramSocket int  port  ) 
 

acdk::net::DatagramSocket::DatagramSocket int  port,
IN(RInetAddress laddr
 

acdk::net::DatagramSocket::DatagramSocket IN(RInetSocketAddress bindaddr  ) 
 


Member Function Documentation

void acdk::net::DatagramSocket::bind IN(RInetSocketAddress addr  ) 
 

void acdk::net::DatagramSocket::close  ) 
 

void acdk::net::DatagramSocket::connect IN(RInetSocketAddress addr  ) 
 

void acdk::net::DatagramSocket::connect IN(RInetAddress address,
int  port
 

void acdk::net::DatagramSocket::disconnect  ) 
 

bool acdk::net::DatagramSocket::getBroadcast  ) 
 

RInetAddress acdk::net::DatagramSocket::getInetAddress  ) 
 

RInetAddress acdk::net::DatagramSocket::getLocalAddress  ) 
 

int acdk::net::DatagramSocket::getLocalPort  ) 
 

RInetSocketAddress acdk::net::DatagramSocket::getLocalSocketAddress  ) 
 

int acdk::net::DatagramSocket::getPort  ) 
 

int acdk::net::DatagramSocket::getReceiveBufferSize  ) 
 

RInetSocketAddress acdk::net::DatagramSocket::getRemoteSocketAddress  ) 
 

bool acdk::net::DatagramSocket::getReuseAddress  ) 
 

int acdk::net::DatagramSocket::getSendBufferSize  ) 
 

int acdk::net::DatagramSocket::getSoTimeout  ) 
 

int acdk::net::DatagramSocket::getTrafficClass  ) 
 

bool acdk::net::DatagramSocket::isBound  ) 
 

bool acdk::net::DatagramSocket::isClosed  ) 
 

bool acdk::net::DatagramSocket::isConnected  ) 
 

void acdk::net::DatagramSocket::receive IN(RDatagramPacket p  ) 
 

void acdk::net::DatagramSocket::send IN(RDatagramPacket p  ) 
 

void acdk::net::DatagramSocket::setBroadcast bool  on  ) 
 

void acdk::net::DatagramSocket::setReceiveBufferSize int  size  ) 
 

void acdk::net::DatagramSocket::setReuseAddress bool  on  ) 
 

void acdk::net::DatagramSocket::setSendBufferSize int  size  ) 
 

void acdk::net::DatagramSocket::setSoTimeout int  timeout  ) 
 

void acdk::net::DatagramSocket::setTrafficClass int  tc  ) 
 


Member Data Documentation

int acdk::net::DatagramSocket::_connected [protected]
 

acdk::io::RFileDescriptor acdk::net::DatagramSocket::_fd [protected]
 

RInetSocketAddress acdk::net::DatagramSocket::_localAddress [protected]
 

RInetSocketAddress acdk::net::DatagramSocket::_remoteAddress [protected]
 

RTCPSocket acdk::net::DatagramSocket::_socket [protected]