Project

General

Profile

UDP

  1. 多线程下,udp的sendto是线程安全的;而tcp本身的send api是线程安全的,只是tcp容易出现short read和short write的粘包问题