public static class SocketExtension
<ExtensionAttribute>
Public NotInheritable Class SocketExtension
[<AbstractClassAttribute>]
[<SealedAttribute>]
[<ExtensionAttribute>]
type SocketExtension = class end
AbsoluteSend | 绝对发送数据。 该方法使用指定的Socket对象,将数据从缓冲区发送到远程主机。 它确保所有数据都被发送,即使需要多次调用Socket的Send方法。 |
TryClose | 尝试关闭Socket。不会抛出异常。 |