diff --git a/client/client.cpp b/client/client.cpp index d6ae458..dbad5e7 100644 --- a/client/client.cpp +++ b/client/client.cpp @@ -31,8 +31,9 @@ TTestTask ClientReader(Poller& poller, typename Poller::TSocket& socket) { template TSimpleTask Client(Poller& poller, TAddress addr) { using TSocket = typename Poller::TSocket; + using TFileHandle = typename Poller::TFileHandle; TSocket socket(std::move(addr), poller); - TSocket input{TAddress{}, 0, poller}; // stdin + TFileHandle input{0, poller}; // stdin co_await socket.Connect(); std::cout << "Connected\n"; char buf[1024]; @@ -43,7 +44,7 @@ TSimpleTask Client(Poller& poller, TAddress addr) { TLine line; TCommandRequest header; header.Type = static_cast(TCommandRequest::MessageType); - auto lineReader = TLineReader(input, 2*1024, 1024); + auto lineReader = TLineReader(input, 2*1024, 1024); auto byteWriter = TByteWriter(socket); try { diff --git a/coroio b/coroio index b33d211..789c763 160000 --- a/coroio +++ b/coroio @@ -1 +1 @@ -Subproject commit b33d2116277e4470e5767a405d9409ad76c933d8 +Subproject commit 789c76324f5192c1fc2ccb4669135cc12e8e4370