realtimenetprots/sipfw/SIP/ConnectionMgr/src/CTcpTransState.cpp
changeset 0 307788aac0a8
equal deleted inserted replaced
-1:000000000000 0:307788aac0a8
       
     1 // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // Name          : CTcpTransState.cpp
       
    15 // Part of       : ConnectionMgr
       
    16 // Version       : SIP/3.0 
       
    17 //
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 #include "CTcpTransState.h"
       
    23 #include "sipmessage.h"
       
    24 
       
    25 // -----------------------------------------------------------------------------
       
    26 // CTcpTransportState::SendToNetL
       
    27 // -----------------------------------------------------------------------------
       
    28 //
       
    29 void CTcpTransportState::SendToNetL(const TSIPTransportParams& /*aParams*/,
       
    30                                     CSIPMessage& /*aMessage*/,
       
    31 									const TInetAddr& /*aAddr*/,
       
    32 									TRequestStatus& /*aStatus*/,
       
    33 									TUint /*aOrigTransport*/,
       
    34 									CTransportTcp* /*aContext*/)
       
    35 	{
       
    36 	__ASSERT_DEBUG(EFalse,
       
    37 		User::Panic(_L("CTcpTransState baseclass is called"),
       
    38 		KErrGeneral));
       
    39 	}
       
    40 
       
    41 // -----------------------------------------------------------------------------
       
    42 // CTcpTransportState::CancelSend
       
    43 // -----------------------------------------------------------------------------
       
    44 //
       
    45 TBool CTcpTransportState::CancelSend(TRequestStatus& /*aStatus*/,
       
    46 									 CTransportTcp* /*aContext*/)
       
    47 	{
       
    48 	__ASSERT_DEBUG(EFalse,
       
    49 				   User::Panic(_L("CTcpTransState baseclass is called"),
       
    50 				   KErrGeneral));
       
    51 	return EFalse;
       
    52 	}
       
    53 
       
    54 // -----------------------------------------------------------------------------
       
    55 // CTcpTransportState::Wait
       
    56 // -----------------------------------------------------------------------------
       
    57 //
       
    58 void CTcpTransportState::Wait(CTransportTcp* /*aContext*/)
       
    59 	{
       
    60 	__ASSERT_DEBUG(EFalse,
       
    61 		User::Panic(_L("CTcpTransState baseclass is called"),
       
    62 		KErrGeneral));
       
    63 	}
       
    64 
       
    65 // -----------------------------------------------------------------------------
       
    66 // CTcpTransportState::HandleMessage
       
    67 // -----------------------------------------------------------------------------
       
    68 //
       
    69 TBool CTcpTransportState::HandleMessage(RStringF /*aProtocol*/,
       
    70 									 	const TInetAddr& /*aRemoteAddr*/,
       
    71 									 	CTransportTcp* /*aContext*/)
       
    72 	{
       
    73 	__ASSERT_DEBUG(EFalse,
       
    74 		User::Panic(_L("CTcpTransState baseclass is called"),
       
    75 		KErrGeneral));
       
    76 	return EFalse;
       
    77 	}
       
    78 
       
    79 // -----------------------------------------------------------------------------
       
    80 // CTcpTransportState::CancelAllRequests
       
    81 // -----------------------------------------------------------------------------
       
    82 //
       
    83 void CTcpTransportState::CancelAllRequests(CSIPConnection::TState /*aReason*/,
       
    84 										   CTransportTcp* /*aContext*/)
       
    85 	{
       
    86 	__ASSERT_DEBUG(EFalse,
       
    87 	User::Panic(_L("CTcpTransState baseclass is called"),
       
    88 	KErrGeneral));
       
    89 	}
       
    90 
       
    91 // -----------------------------------------------------------------------------
       
    92 // CTcpTransportState::ConnectionOpenL
       
    93 // -----------------------------------------------------------------------------
       
    94 //
       
    95 void CTcpTransportState::ConnectionOpenL(CTransportTcp* /*aContext*/)
       
    96 	{
       
    97 	__ASSERT_DEBUG(EFalse,
       
    98 		User::Panic(_L("CTcpTransState baseclass is called"),
       
    99 		KErrGeneral));
       
   100 	}
       
   101 
       
   102 // -----------------------------------------------------------------------------
       
   103 // CTcpTransportState::DisconnectedL
       
   104 // -----------------------------------------------------------------------------
       
   105 //
       
   106 void CTcpTransportState::DisconnectedL(CTransportTcp* /*aContext*/)
       
   107 	{
       
   108 	__ASSERT_DEBUG(EFalse,
       
   109 		User::Panic(_L("CTcpTransState baseclass is called"),
       
   110 		KErrGeneral));
       
   111 	}
       
   112 
       
   113 // -----------------------------------------------------------------------------
       
   114 // CTcpTransportState::SetNeighborState
       
   115 // -----------------------------------------------------------------------------
       
   116 //
       
   117 void CTcpTransportState::SetNeighborState(CTcpTransportState* /*aState*/)
       
   118 	{
       
   119 	__ASSERT_DEBUG(EFalse,
       
   120 		User::Panic(_L("CTcpTransState baseclass is called"),
       
   121 		KErrGeneral));
       
   122 	}
       
   123 
       
   124 // -----------------------------------------------------------------------------
       
   125 // CTcpTransportState::TimerExpiredL
       
   126 // -----------------------------------------------------------------------------
       
   127 //
       
   128 void CTcpTransportState::TimerExpiredL(CTransportTcp* /*aContext*/)
       
   129 	{
       
   130 	__ASSERT_DEBUG(EFalse,
       
   131 		User::Panic(_L("CTcpTransState baseclass is called"),
       
   132 		KErrGeneral));
       
   133 	}
       
   134 
       
   135 // -----------------------------------------------------------------------------
       
   136 // CTcpTransportState::CTcpTransportState
       
   137 // -----------------------------------------------------------------------------
       
   138 //
       
   139 CTcpTransportState::CTcpTransportState(const TSIPTransportParams& aParams) :
       
   140     iTransportParams(aParams)
       
   141 	{
       
   142 	}