task finished: get code, size message and message in protocol.c