You can use length-prefixed message framing but it does not work with telnet as both endpoints must use the same protocol.
Implementation example here: https://github.com/litesync/libuv_message_framing Bernardo Ramos -- You received this message because you are subscribed to the Google Groups "libuv" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/libuv. For more options, visit https://groups.google.com/d/optout.
