ACE  6.0.6
Public Member Functions | Protected Attributes
ACE_SOCK_Dgram_SC Class Reference

"Dgram_SC" is short for "Datagram Self-Contained." More...

#include <IOStream_T.h>

Collaboration diagram for ACE_SOCK_Dgram_SC:
Collaboration graph

List of all members.

Public Member Functions

 ACE_SOCK_Dgram_SC (void)
 ACE_SOCK_Dgram_SC (STREAM &source, ACE_INET_Addr &dest)
ssize_t send_n (char *buf, ssize_t len)
ssize_t recv (char *buf, ssize_t len, ACE_Time_Value *tv=0)
ssize_t recv (char *buf, ssize_t len, int flags, ACE_Time_Value *tv=0)
ssize_t recv_n (char *buf, ssize_t len, int flags=0, ACE_Time_Value *tv=0)
int get_remote_addr (ACE_INET_Addr &addr) const

Protected Attributes

ACE_INET_Addr peer_

Detailed Description

"Dgram_SC" is short for "Datagram Self-Contained."

Datagrams don't have the notion of a "peer". Each send and receive on a datagram can go to a different peer if you want. If you're using datagrams for stream activity, you probably want 'em all to go to (and come from) the same place. That's what this class is for. Here, we keep an address object so that we can remember who last sent us data. When we write back, we're then able to write back to that same address.

Constructor & Destructor Documentation

ACE_SOCK_Dgram_SC::ACE_SOCK_Dgram_SC ( void  ) [inline]
ACE_SOCK_Dgram_SC::ACE_SOCK_Dgram_SC ( STREAM &  source,
ACE_INET_Addr dest 
) [inline]

Member Function Documentation

int ACE_SOCK_Dgram_SC::get_remote_addr ( ACE_INET_Addr addr) const [inline]
ssize_t ACE_SOCK_Dgram_SC::recv ( char *  buf,
ssize_t  len,
ACE_Time_Value tv = 0 
) [inline]
ssize_t ACE_SOCK_Dgram_SC::recv ( char *  buf,
ssize_t  len,
int  flags,
ACE_Time_Value tv = 0 
) [inline]
ssize_t ACE_SOCK_Dgram_SC::recv_n ( char *  buf,
ssize_t  len,
int  flags = 0,
ACE_Time_Value tv = 0 
) [inline]
ssize_t ACE_SOCK_Dgram_SC::send_n ( char *  buf,
ssize_t  len 
) [inline]

Member Data Documentation

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines