Name

LingerOption

Synopsis

This class is a socket option object that enables a socket to continue to send queued data after a call to Socket.Close(). If the Enabled property is True, the connection lingers for the number of seconds given by LingerTime. The LingerOption object is set on a socket with the Socket.SetSocketOption() method and a SocketOptionName of SocketOptionName.Linger.

Public Class LingerOption
                  ' Public Constructors
   Public Sub New(ByVal enable As Boolean, 
        ByVal seconds As Integer) 
' Public Instance Properties
   Public Property Enabled As Boolean  
   Public Property LingerTime As Integer  
End Class

Returned By

TcpClient.LingerState

Passed To

TcpClient.LingerState

Get VB.NET Core Classes in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.