~ubuntu-branches/ubuntu/quantal/aria2/quantal

« back to all changes in this revision

Viewing changes to src/HttpConnection.h

  • Committer: Bazaar Package Importer
  • Author(s): Kartik Mistry
  • Date: 2011-04-02 12:38:55 UTC
  • mfrom: (2.5.2 sid)
  • Revision ID: james.westby@ubuntu.com-20110402123855-znkslovhf5qvkjut
Tags: 1.11.1-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
class Option;
53
53
class Segment;
54
54
class SocketCore;
 
55
class SocketRecvBuffer;
55
56
 
56
57
class HttpRequestEntry {
57
58
private:
80
81
private:
81
82
  cuid_t cuid_;
82
83
  SharedHandle<SocketCore> socket_;
 
84
  SharedHandle<SocketRecvBuffer> socketRecvBuffer_;
83
85
  SocketBuffer socketBuffer_;
84
86
  const Option* option_;
85
87
 
87
89
 
88
90
  std::string eraseConfidentialInfo(const std::string& request);
89
91
public:
90
 
  HttpConnection(cuid_t cuid, const SharedHandle<SocketCore>& socket);
 
92
  HttpConnection
 
93
  (cuid_t cuid,
 
94
   const SharedHandle<SocketCore>& socket,
 
95
   const SharedHandle<SocketRecvBuffer>& socketRecvBuffer);
91
96
  ~HttpConnection();
92
97
 
93
98
  /**
124
129
  bool sendBufferIsEmpty() const;
125
130
 
126
131
  void sendPendingData();
 
132
 
 
133
  const SharedHandle<SocketRecvBuffer>& getSocketRecvBuffer() const
 
134
  {
 
135
    return socketRecvBuffer_;
 
136
  }
127
137
};
128
138
 
129
139
typedef SharedHandle<HttpConnection> HttpConnectionHandle;