vapor-community / sockets

🔌 Non-blocking TCP socket layer, with event-driven server and client.
MIT License
575 stars 54 forks source link

Add a func readn to TCPReadableSocket #109

Closed codetalks-new closed 7 years ago

codetalks-new commented 7 years ago

as TCP is a stream protocol, At many times, one data packet may be send within different segment. so a readn func would help us a lot. advices need to improve it.

codetalks-new commented 7 years ago

sorry there are some exp file in this branch ,I'll close this PR. and then create another