XFcUdpRecv class Reference

Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members File Members

# XFcUdpRecv Class Reference

XFcUdpRecv is a helper class for receiving data to XFcObjectPacketBase. More...

Collaboration diagram for XFcUdpRecv:

[legend]
List of all members.

## Public Member Functions

| ~XFcUdpRecv ()
| Destructor.
INT32 | recv (XFcInetAddress *aAddress, XFcObjectPacketBase *aIncomingBuffer)
| Receives data.

## Static Public Member Functions

XFcUdpRecv * | create (XFcDgramSocket *aSocket)
| Static constructor.

## Protected Member Functions

| XFcUdpRecv ()
| Protected constructor.
INT32 | init (XFcDgramSocket *aSocket)
| Initializes.

## Private Attributes

XFcDgramSocket * | mSocket
| Holds communication socket.

## Detailed Description

XFcUdpRecv is a helper class for receiving data to XFcObjectPacketBase.

## Constructor & Destructor Documentation

XFcUdpRecv::XFcUdpRecv | ( |  | ) | `[protected]`

| Protected constructor.

XFcUdpRecv::~XFcUdpRecv | ( |  | ) |

| Destructor.

## Member Function Documentation

XFcUdpRecv* XFcUdpRecv::create | ( | XFcDgramSocket * | aSocket | ) | `[static]`

| Static constructor.

INT32 XFcUdpRecv::init | ( | XFcDgramSocket * | aSocket | ) | `[protected]`

Initializes.

Parameters:

  aSocket | datagram socket.

INT32 XFcUdpRecv::recv | ( | XFcInetAddress * | aAddress,
|  | XFcObjectPacketBase * | aIncomingBuffer
| ) |

Receives data.

Parameters:

  aAddress | incoming address.
  aIncomingBuffer | incoming buffer handler.

Returns:
  length of received data in bytes if successful, or XFCNET_ERROR if unsuccessful.

## Member Data Documentation

XFcDgramSocket* XFcUdpRecv::mSocket`[private]`

| Holds communication socket.

|  | X-Forge Documentation Confidential Copyright © 2002-2003 Fathammer |  | Documentation generated with doxygen by Dimitri van Heesch