From cdded9430595c876d4cf3ad5a696f2b7fe509b99 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Tue, 21 Aug 2012 22:02:35 +0900 Subject: [PATCH] spdycat: wrap line longer than 79 chars --- examples/spdycat.cc | 16 ++++++++++------ examples/spdylay_ssl.h | 3 ++- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/examples/spdycat.cc b/examples/spdycat.cc index f23bd47..dd1c108 100644 --- a/examples/spdycat.cc +++ b/examples/spdycat.cc @@ -224,7 +224,9 @@ struct SpdySession { Config config; extern bool ssl_debug; -void submit_request(Spdylay& sc, const std::string& hostport, const std::map &headers, Request* req) +void submit_request(Spdylay& sc, const std::string& hostport, + const std::map &headers, + Request* req) { uri::UriStruct& us = req->us; std::string path = us.dir+us.file+us.query; @@ -512,7 +514,8 @@ int communicate(const std::string& host, uint16_t port, assert(rv == 0); } for(int i = 0, n = spdySession.reqvec.size(); i < n; ++i) { - submit_request(sc, spdySession.hostport, config.headers, spdySession.reqvec[i]); + submit_request(sc, spdySession.hostport, config.headers, + spdySession.reqvec[i]); } pollfds[0].fd = fd; ctl_poll(pollfds, &sc); @@ -726,14 +729,15 @@ int main(int argc, char **argv) value++; while( isspace( *value ) ) { value++; } if ( *value == 0 ) { - // This could also be a valid case for suppressing a header similar to curl + // This could also be a valid case for suppressing a header + // similar to curl std::cerr << "-H: invalid header - value missing: " << optarg << std::endl; exit(EXIT_FAILURE); } - // Note that there is no processing currently to handle multiple message-header - // fields with the same field name - config.headers.insert( std::pair( header, value ) ); + // Note that there is no processing currently to handle multiple + // message-header fields with the same field name + config.headers.insert(std::pair(header, value)); } case 'a': #ifdef HAVE_LIBXML2 diff --git a/examples/spdylay_ssl.h b/examples/spdylay_ssl.h index 7be81b1..b236466 100644 --- a/examples/spdylay_ssl.h +++ b/examples/spdylay_ssl.h @@ -55,7 +55,8 @@ public: bool want_write(); bool finish(); int fd() const; - int submit_request(const std::string& hostport, const std::string& path, const std::map& headers, + int submit_request(const std::string& hostport, const std::string& path, + const std::map& headers, uint8_t pri, void *stream_user_data); int submit_settings(int flags, spdylay_settings_entry *iv, size_t niv); bool would_block(int r);