00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef MMCCNETWORKSETTINGS_H
00020 #define MMCCNETWORKSETTINGS_H
00021
00022 #include <e32def.h>
00023 #include <in_sock.h>
00024 #include <e32cmn.h>
00025
00026
00027 const TInt KDefaultMediaQos = 184;
00028 const TInt KDefaultRtpPort = 17000;
00029 const TInt KDefaultRtcpPort = 17001;
00030
00039 class TMccNetSettings
00040 {
00041 public:
00042
00043 inline TMccNetSettings() :
00044 iRemoteAddress( KInetAddrAny ),
00045 iRemoteRtcpPort( KDefaultRtcpPort ),
00046 iLocalAddress( KInetAddrAny ),
00047 iLocalPublicAddress( KInetAddrAny ),
00048 iLocalRtcpPort( KDefaultRtcpPort ),
00049 iLocalPublicRtcpPort( KDefaultRtcpPort ),
00050 iMediaQosValue( KDefaultMediaQos ),
00051 iIapId( -1 ),
00052 iReserved1( 0 ),
00053 iReserved2( 0 )
00054 {};
00055
00056 public:
00057
00058
00059 TInetAddr iRemoteAddress;
00060 TUint iRemoteRtcpPort;
00061
00068 TInetAddr iLocalAddress;
00069
00070
00071 TInetAddr iLocalPublicAddress;
00072 TUint iLocalRtcpPort;
00073 TUint iLocalPublicRtcpPort;
00074
00079 TInt iMediaQosValue;
00080
00084 TInt iIapId;
00085
00086
00087 TUint32 iReserved1;
00088 TUint32 iReserved2;
00089
00090 };
00091
00092 typedef TPckgBuf<TMccNetSettings> TMccNetSettingsPackage;
00093
00094 #endif