Atlas
0.7.0
Networking protocol for the Worldforge system.
|
#include <Stream.h>
Public Types | |
enum | State { IN_PROGRESS , SUCCEEDED , FAILED } |
Public Member Functions | |
StreamConnect (std::string name, std::istream &inStream, std::ostream &outStream) | |
void | poll () override |
State | getState () override |
std::unique_ptr< Atlas::Codec > | getCodec (Atlas::Bridge &) override |
FIXME We should pass in the Bridge here, not at construction time. More... | |
Negotiation of clients building a connection to a remote system.
Used once a stream connection has been established to the server. This class offers the server a list of Atlas::Codec types that the client can understand, and then listens for the servers decision. Once the server has told the client which Atlas::Codec to use, negotiation is flagged as complete, and this object can be deleted.
|
overridevirtual |
FIXME We should pass in the Bridge here, not at construction time.
Implements Atlas::Negotiate.
Definition at line 190 of file Stream.cpp.