]> git.tdb.fi Git - libs/net.git/blobdiff - source/net/communicator.h
Massive overhaul of the Protocol class
[libs/net.git] / source / net / communicator.h
index cd465a52d525c25cf837db2cca614a5a6e8cfc98..5921767e6a37ada58ba91876f5a2b80a30c3c59a 100644 (file)
@@ -47,7 +47,7 @@ public:
                        throw sequence_error("connection aborted");
                if(handshake_status!=2)
                        throw sequence_error("handshaking not done");
-               unsigned size = protocol.assemble(pkt, out_buf, buf_size);
+               unsigned size = protocol.serialize(pkt, out_buf, buf_size);
                try
                {
                        socket.write(out_buf, size);