P2p first version

This commit is contained in:
刘河 committed 2019-02-26 22:40:28 +08:00
1 parent 204c53ddd3
commit 534d428c6d
23 files changed
+986 -77

No files matched your search

+1
View File
@@ -42,6 +42,7 @@ func PutBufPoolUdp(buf []byte) {
}
}
func PutBufPoolCopy(buf []byte) {
if cap(buf) == PoolSizeCopy {
BufPoolCopy.Put(buf[:PoolSizeCopy])