You can implement a custom protocol pretty easily with term_to_binary and the {:packet, n}
options to gen_tcp though, if your use case is something like task dispatching.
2 Likes
You can implement a custom protocol pretty easily with term_to_binary and the {:packet, n}
options to gen_tcp though, if your use case is something like task dispatching.