X-Git-Url: http://git.tdb.fi/?p=libs%2Fnet.git;a=blobdiff_plain;f=source%2Fnet%2Fcommunicator.cpp;fp=source%2Fnet%2Fcommunicator.cpp;h=b30a8e965c388c8457b26ae454ce6c399fe5f6fc;hp=618e8b45e9e295f01fc4948ef19daecd56f51242;hb=3c2a877580e234df5fcbe06bf2850cd29f875e28;hpb=b069cfc670fb78b4b429d07d2aadb59628426a25 diff --git a/source/net/communicator.cpp b/source/net/communicator.cpp index 618e8b4..b30a8e9 100644 --- a/source/net/communicator.cpp +++ b/source/net/communicator.cpp @@ -133,7 +133,7 @@ bool Communicator::receive_packet(const Protocol &proto, ReceiverBase &recv) { char *pkt = in_begin; in_begin += psz; - proto.disassemble(recv, pkt, psz); + proto.dispatch(recv, pkt, psz); return true; } else @@ -155,7 +155,7 @@ void Communicator::send_handshake() shake.hash = protocol.get_hash(); HandshakeProtocol hsproto; - unsigned size = hsproto.assemble(shake, out_buf, buf_size); + unsigned size = hsproto.serialize(shake, out_buf, buf_size); socket.write(out_buf, size); }