下面的顺序是合法的还是应该只在 EndAccept 返回之后才调用下一个 BeginAccept() ?
listener.BeginAccept(AcceptCallback, null);
private void AcceptCallback(IAsyncResult ar)
{
listener.BeginAccept(AcceptCallback, null); //Is this ok ? Or should happen only after next line?
socket = listener.EndAccept(ar);
}