h323rtp.h
Go to the documentation of this file.
/*
* h323rtp.h
*
* H.323 RTP protocol handler
*
* Open H323 Library
*
* Copyright (c) 1998-2001 Equivalence Pty. Ltd.
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.0 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS"
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
* the License for the specific language governing rights and limitations
* under the License.
*
* The Original Code is Open H323 Library.
*
* The Initial Developer of the Original Code is Equivalence Pty. Ltd.
*
* Portions of this code were written with the assisance of funding from
* Vovida Networks, Inc. http://www.vovida.com.
*
* Contributor(s): ______________________________________.
*
* $Revision: 21293 $
* $Author: rjongbloed $
* $Date: 2008-10-12 18:24:41 -0500 (Sun, 12 Oct 2008) $
*/
#ifndef OPAL_H323_H323RTP_H
#define OPAL_H323_H323RTP_H
#ifdef P_USE_PRAGMA
#pragma interface
#endif
#include <opal/buildopts.h>
#if OPAL_H323
#include <rtp/rtp.h>
class H225_RTPSession;
class H245_TransportAddress;
class H245_H2250LogicalChannelParameters;
class H245_H2250LogicalChannelAckParameters;
class H323Connection;
class H323_RTPChannel;
class H323_RTP_Session : public RTP_UserData
{
PCLASSINFO(H323_RTP_Session, RTP_UserData);
virtual void OnTxStatistics(
const RTP_Session & session
) const;
virtual void OnRxStatistics(
const RTP_Session & session
) const;
virtual PBoolean OnSendingPDU(
const H323_RTPChannel & channel,
H245_H2250LogicalChannelParameters & param
) const = 0;
virtual void OnSendingAckPDU(
const H323_RTPChannel & channel,
H245_H2250LogicalChannelAckParameters & param
) const = 0;
virtual PBoolean OnReceivedPDU(
H323_RTPChannel & channel,
const H245_H2250LogicalChannelParameters & param,
unsigned & errorCode
) = 0;
virtual PBoolean OnReceivedAckPDU(
H323_RTPChannel & channel,
const H245_H2250LogicalChannelAckParameters & param
) = 0;
virtual void OnSendRasInfo(
H225_RTPSession & info
) = 0;
protected:
H323_RTP_Session(
const H323Connection & connection
);
const H323Connection & connection;
};
class H323_RTP_UDP : public H323_RTP_Session
{
PCLASSINFO(H323_RTP_UDP, H323_RTP_Session);
public:
H323_RTP_UDP(
const H323Connection & connection,
RTP_UDP & rtp
);
virtual PBoolean OnSendingPDU(
const H323_RTPChannel & channel,
H245_H2250LogicalChannelParameters & param
) const;
virtual void OnSendingAckPDU(
const H323_RTPChannel & channel,
H245_H2250LogicalChannelAckParameters & param
) const;
virtual PBoolean OnReceivedPDU(
H323_RTPChannel & channel,
const H245_H2250LogicalChannelParameters & param,
unsigned & errorCode
);
virtual PBoolean OnReceivedAckPDU(
H323_RTPChannel & channel,
const H245_H2250LogicalChannelAckParameters & param
);
virtual void OnSendRasInfo(
H225_RTPSession & info
);
protected:
virtual PBoolean ExtractTransport(
const H245_TransportAddress & pdu,
PBoolean isDataPort,
unsigned & errorCode
);
RTP_UDP & rtp;
};
#endif // OPAL_H323
#endif // OPAL_H323_H323RTP_H
H323_RTP_UDP::OnSendingPDU
virtual PBoolean OnSendingPDU(const H323_RTPChannel &channel, H245_H2250LogicalChannelParameters &param) const
H323_RTP_UDP::rtp
RTP_UDP & rtp
Definition: h323rtp.h:226
H323_RTP_UDP::ExtractTransport
virtual PBoolean ExtractTransport(const H245_TransportAddress &pdu, PBoolean isDataPort, unsigned &errorCode)
RTP_Session
Definition: rtp.h:502
buildopts.h
H323_RTPChannel
Definition: channels.h:570
H323_RTP_Session::connection
const H323Connection & connection
Owner of the RTP session.
Definition: h323rtp.h:147
H323_RTP_Session::H323_RTP_Session
H323_RTP_Session(const H323Connection &connection)
H323_RTP_UDP::OnReceivedAckPDU
virtual PBoolean OnReceivedAckPDU(H323_RTPChannel &channel, const H245_H2250LogicalChannelAckParameters &param)
H323_RTP_UDP
Definition: h323rtp.h:153
H323_RTP_UDP::OnSendingAckPDU
virtual void OnSendingAckPDU(const H323_RTPChannel &channel, H245_H2250LogicalChannelAckParameters &param) const
H323Connection
Definition: h323con.h:130
RTP_UserData
Definition: rtp.h:444
H323_RTP_UDP::OnSendRasInfo
virtual void OnSendRasInfo(H225_RTPSession &info)
H323_RTP_Session
Definition: h323rtp.h:62
H323_RTP_UDP::OnReceivedPDU
virtual PBoolean OnReceivedPDU(H323_RTPChannel &channel, const H245_H2250LogicalChannelParameters &param, unsigned &errorCode)
rtp.h
H323_RTP_UDP::H323_RTP_UDP
H323_RTP_UDP(const H323Connection &connection, RTP_UDP &rtp)
RTP_UDP
Definition: rtp.h:1098