Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
对不起,如果问题很简单。但是如果我使用它是一样的吗
socket.SetSocketOption (SocketOptionLevel.Socket, SocketOptionName.SendTimeout, 1000);
代替
socket.SendTimeout = 1000;
或者,它不一样?
谢谢。
它们都是相同的,因为socket.SendTimeout = 1000;最终会调用该SetSocketOption方法。
SetSocketOption