Changeset 08f5bd75ad170e6b8177b93e98f40d0f8a51b9d2 for tls/session.hh
- Timestamp:
- 08/14/10 20:42:42 (22 months ago)
- Children:
- 994811461679afe70ab81e079fd87191d609be9d
- Parents:
- 61975465b66e572def6105480f10917981b1ef0d
- git-committer:
- Antti-Juhani Kaijanaho <antti-juhani@…> (08/14/10 20:42:42)
- Files:
-
- 1 modified
-
tls/session.hh (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tls/session.hh
r8d4f7f7 r08f5bd7 21 21 #define GUARD_TLS_SESSION_HH 22 22 23 #include "ringbuf.hh" 23 24 #include "error_category.hh" 24 25 #include "init.hh" … … 40 41 public boost::enable_shared_from_this<session_impl<Stream> > 41 42 { 43 enum { ringbufsize = 4096 }; 42 44 public: 43 45 typedef boost::shared_ptr<session_impl<Stream> > ptr; … … 49 51 , stream(si) 50 52 , strand(stream.get_io_service()) 51 , ins_low(0) 52 , ins_high(0) 53 , ins(ringbufsize) 53 54 , read_active(false) 54 , outs _low(0)55 , outs(ringbufsize) 55 56 , write_active(false) 56 57 { init(tls_init, ce); } … … 61 62 , stream(si) 62 63 , strand(stream.get_io_service()) 63 , ins_low(0) 64 , ins_high(0) 64 , ins(ringbufsize) 65 65 , read_active(false) 66 , outs _low(0)66 , outs(ringbufsize) 67 67 , write_active(false) 68 68 { init(tls_init, ce); } … … 102 102 gnutls_session_t gs; 103 103 104 /* the stuff that has been read but not yet passed on 105 * is between ins_low and ins_high */ 106 std::vector<unsigned char> ins; 107 size_t ins_low, ins_high; 104 ringbuf ins; 108 105 bool read_active; 109 106 110 /* the stuff that has been buffered for sending but 111 * not yet sent is between outs_low and the end of 112 * outs */ 113 std::vector<unsigned char> outs; 114 size_t outs_low; 107 ringbuf outs; 115 108 bool write_active; 116 109
