Main Page | Class Hierarchy | Data Structures | File List | Data Fields | Globals

CNUDPConnection Class Reference

NUDPConnection class adds nanoUDP functionalities to the concerete connection. More...

#include <nudpconnection.h>

Inheritance diagram for CNUDPConnection:

CConcreteConnection

Public Member Functions

 ~CNUDPConnection ()
void ReceiveL (const RMessage &aMessage)
void SendL (TDesC8 *aBuf)

Static Public Member Functions

CNUDPConnectionNewL (RSocket *aSocket, CServerSession &aSession, TInt aMtu)
CNUDPConnectionNewListeningL (RSocket *aSocket, RSocketServ *aSocketServ, CServerSession &aSession)

Private Member Functions

 CNUDPConnection (RSocket *aSocket, RSocketServ *aSocketServ, CServerSession &aSession, TInt aMtu)
TDesC8 * CreateFrame (TDesC8 *aBuf, TUint8 aFlags, TUint16 aLen)
 Wraps the given payload data inside a nUDP protocol header.


Private Attributes

TUint8 iSrcPort
TUint8 iDstPort

Detailed Description

NUDPConnection class adds nanoUDP functionalities to the concerete connection.

This implementation is based on the IETF Internet draft draft-shelby-nanoIP-00.txt May 2003.

Author:
Matti Dahlbom

Matti Kokkola

Version:
beta0_9_1_2004-01-13, 1.1

Definition at line 55 of file nudpconnection.h.


Constructor & Destructor Documentation

CNUDPConnection::~CNUDPConnection  ) 
 

Definition at line 75 of file nudpconnection.cpp.

CNUDPConnection::CNUDPConnection RSocket *  aSocket,
RSocketServ *  aSocketServ,
CServerSession aSession,
TInt  aMtu
[private]
 

Definition at line 64 of file nudpconnection.cpp.

References iDstPort, and iSrcPort.

Referenced by NewL(), and NewListeningL().


Member Function Documentation

TDesC8 * CNUDPConnection::CreateFrame TDesC8 *  aBuf,
TUint8  aFlags,
TUint16  aLen
[private]
 

Wraps the given payload data inside a nUDP protocol header.

Definition at line 145 of file nudpconnection.cpp.

References iDstPort, iSrcPort, and KNUDPHeaderSize.

Referenced by SendL().

CNUDPConnection * CNUDPConnection::NewL RSocket *  aSocket,
CServerSession aSession,
TInt  aMtu
[static]
 

Reimplemented from CConcreteConnection.

Definition at line 34 of file nudpconnection.cpp.

References CNUDPConnection(), and CConcreteConnection::ConstructL().

CNUDPConnection * CNUDPConnection::NewListeningL RSocket *  aSocket,
RSocketServ *  aSocketServ,
CServerSession aSession
[static]
 

Reimplemented from CConcreteConnection.

Definition at line 49 of file nudpconnection.cpp.

References CNUDPConnection(), and CConcreteConnection::ConstructL().

void CNUDPConnection::ReceiveL const RMessage &  aMessage  ) 
 

Reimplemented from CConcreteConnection.

Definition at line 128 of file nudpconnection.cpp.

References Log::Print(), and CAsynchReceive::Receive().

void CNUDPConnection::SendL TDesC8 *  aBuf  ) 
 

Reimplemented from CConcreteConnection.

Definition at line 83 of file nudpconnection.cpp.

References CreateFrame(), CConcreteConnection::GetMTU(), KFirstFragment, KLastFragment, KNUDPHeaderSize, Log::Print(), and CAsynchSend::SendL().


Friends And Related Function Documentation

friend class CConcreteConnection [friend]
 

Definition at line 87 of file nudpconnection.h.


Field Documentation

TUint8 CNUDPConnection::iDstPort [private]
 

Definition at line 85 of file nudpconnection.h.

Referenced by CNUDPConnection(), and CreateFrame().

TUint8 CNUDPConnection::iSrcPort [private]
 

Definition at line 84 of file nudpconnection.h.

Referenced by CNUDPConnection(), and CreateFrame().


The documentation for this class was generated from the following files:
Generated on Tue Jan 13 15:47:09 2004 for CobainAPIImplementation by doxygen 1.3.5