char *in_begin;
char *in_end;
char *out_buf;
+ bool good;
public:
Communicator(StreamSocket &, const Protocol &, ReceiverBase &);
template<typename P>
void send(const P &pkt)
{
+ if(!good)
+ throw sequence_error("connection aborted");
if(handshake_status!=2)
throw sequence_error("handshaking not done");
unsigned size = protocol.assemble(pkt, out_buf, buf_size);