Socket Lingerstate example
Imports System.Net.Sockets.LingerOption
Imports System
Imports System.Net.Sockets
Module Module1
Sub Main()
Dim tcpClient As New tcpclient
Dim lingerOption As New LingerOption(True, 10)
tcpClient.lingerstate = lingerOption
Console.WriteLine(("the linger state was set to " + tcpClient.LingerState.LingerTime.ToString()))
End Sub
End Module
If the answers is incorrect or not given, you can answer the above question in the comment box. If the answers is incorrect or not given, you can answer the above question in the comment box.