Start working on server

This commit is contained in:
Carl Lerche
2017-06-30 14:35:03 -07:00
parent 7f21954724
commit cb5130e3c6
9 changed files with 365 additions and 23 deletions

View File

@@ -62,6 +62,8 @@ impl<T, P> Stream for Connection<T, P>
fn poll(&mut self) -> Poll<Option<Self::Item>, ConnectionError> {
use frame::Frame::*;
trace!("Connection::poll");
let frame = match try!(self.inner.poll()) {
Async::Ready(f) => f,
Async::NotReady => {
@@ -72,6 +74,8 @@ impl<T, P> Stream for Connection<T, P>
}
};
trace!("received; frame={:?}", frame);
let frame = match frame {
Some(Headers(v)) => {
// TODO: Update stream state