equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2007 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 * |
|
16 */ |
|
17 |
|
18 #ifndef CTCPCRLFSENDER_H |
|
19 #define CTCPCRLFSENDER_H |
|
20 |
|
21 // INCLUDES |
|
22 #include "ccrlfsender.h" |
|
23 |
|
24 // FORWARD DECLARATIONS |
|
25 |
|
26 |
|
27 // CLASS DECLARATION |
|
28 /** |
|
29 * A class for sending CRLF bursts to network using TCP socket. |
|
30 */ |
|
31 class CTcpCRLFSender : public CCRLFSender |
|
32 { |
|
33 public: // Constructors and destructor |
|
34 |
|
35 CTcpCRLFSender( |
|
36 RSocket& aSocket, |
|
37 MNATBindingRefresherObserver& aObserver ); |
|
38 |
|
39 ~CTcpCRLFSender(); |
|
40 |
|
41 public: // From CCRLFSender |
|
42 |
|
43 TBool HasSocket( const RSocket& aSocket ) const; |
|
44 |
|
45 protected: // From CActive |
|
46 |
|
47 void DoCancel(); |
|
48 |
|
49 protected: // From CCRLFSender |
|
50 |
|
51 void Send( const TDesC8& aData ); |
|
52 |
|
53 private: // Data |
|
54 |
|
55 RSocket& iSocket; |
|
56 }; |
|
57 |
|
58 #endif // CTCPCRLFSENDER_H |
|
59 |
|
60 // End of File |