|
1 /* |
|
2 * Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * Name : CTcpTransState.h |
|
16 * Part of : ConnectionMgr |
|
17 * Version : SIP/4.0 |
|
18 * |
|
19 */ |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 /** |
|
25 @internalComponent |
|
26 */ |
|
27 |
|
28 #ifndef __CTCPTRANSSTATE_H__ |
|
29 #define __CTCPTRANSSTATE_H__ |
|
30 |
|
31 #include <e32base.h> |
|
32 #include <in_sock.h> |
|
33 #include <stringpool.h> |
|
34 #include "sipconnection.h" |
|
35 |
|
36 class CSIPMessage; |
|
37 class CTransportTcp; |
|
38 class TSIPTransportParams; |
|
39 |
|
40 |
|
41 class CTcpTransportState : public CBase |
|
42 { |
|
43 public: |
|
44 virtual ~CTcpTransportState() {} |
|
45 |
|
46 virtual void SendToNetL(const TSIPTransportParams& aParams, |
|
47 CSIPMessage& aMessage, |
|
48 const TInetAddr& aAddr, |
|
49 TRequestStatus &aStatus, |
|
50 TUint aOrigTransport, |
|
51 CTransportTcp* aContext); |
|
52 |
|
53 virtual TBool CancelSend(TRequestStatus& aStatus, |
|
54 CTransportTcp* aContext); |
|
55 virtual void Wait(CTransportTcp* aContext); |
|
56 virtual TBool HandleMessage(RStringF aProtocol, |
|
57 const TInetAddr& aRemoteAddr, |
|
58 CTransportTcp* aContext); |
|
59 virtual void CancelAllRequests(CSIPConnection::TState aReason, |
|
60 CTransportTcp* aContext); |
|
61 virtual void ConnectionOpenL(CTransportTcp* aContext); |
|
62 virtual void DisconnectedL(CTransportTcp* aContext); |
|
63 virtual void TimerExpiredL(CTransportTcp* aContext); |
|
64 virtual void SetNeighborState(CTcpTransportState* aState); |
|
65 |
|
66 protected: |
|
67 CTcpTransportState(const TSIPTransportParams& aParams); |
|
68 |
|
69 const TSIPTransportParams& iTransportParams; |
|
70 }; |
|
71 |
|
72 #endif // end of __CTCPTRANSSTATE_H__ |
|
73 |
|
74 // End of File |