[go-nuts] Implementing a custom TCP client

2017-09-20 Thread Tamás Gulácsi
I don't see anything obviously wrong, but using length-prefixed messages would simplify reading (no need to buffer) and wouldn't complicate writing. My 2¢ -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop

[go-nuts] Implementing a custom TCP client

2017-09-20 Thread newbgopher
Hi all! I already asked this on reddit , but I figured might as well ask it here. Im trying to implement a custom TCP client. This protocol allows request from both the client and the server Scenario