summaryrefslogtreecommitdiff
path: root/src/WebSocketSession.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2016-03-26 17:12:52 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2016-03-26 17:20:27 +0900
commitd64089632e82a2548752c7a6baaa68365a795a74 (patch)
tree57fc7b85a8c1290975d58fa4761b04a7695bf7e3 /src/WebSocketSession.h
parentc81b1321122e8509b55c94c0cbca0d8d6d319f0c (diff)
parenta7cd943a06b1a5ff4515b57060b84037f8d01f9f (diff)
Merge branch 'master' into random-webseeding
Diffstat (limited to 'src/WebSocketSession.h')
-rw-r--r--src/WebSocketSession.h41
1 files changed, 12 insertions, 29 deletions
diff --git a/src/WebSocketSession.h b/src/WebSocketSession.h
index 7deb39bb..639bc653 100644
--- a/src/WebSocketSession.h
+++ b/src/WebSocketSession.h
@@ -89,35 +89,18 @@ public:
std::unique_ptr<ValueBase> parseFinal(const uint8_t* data, size_t len,
ssize_t& error);
- const std::shared_ptr<SocketCore>& getSocket() const
- {
- return socket_;
- }
-
- DownloadEngine* getDownloadEngine()
- {
- return e_;
- }
-
- WebSocketInteractionCommand* getCommand()
- {
- return command_;
- }
-
- void setCommand(WebSocketInteractionCommand* command)
- {
- command_ = command;
- }
-
- bool getIgnorePayload() const
- {
- return ignorePayload_;
- }
-
- void setIgnorePayload(bool flag)
- {
- ignorePayload_ = flag;
- }
+ const std::shared_ptr<SocketCore>& getSocket() const { return socket_; }
+
+ DownloadEngine* getDownloadEngine() { return e_; }
+
+ WebSocketInteractionCommand* getCommand() { return command_; }
+
+ void setCommand(WebSocketInteractionCommand* command) { command_ = command; }
+
+ bool getIgnorePayload() const { return ignorePayload_; }
+
+ void setIgnorePayload(bool flag) { ignorePayload_ = flag; }
+
private:
std::shared_ptr<SocketCore> socket_;
DownloadEngine* e_;