Networking System [00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00 ] 1.0.x.x 1.0.5000.0 2.0.0.0 4.0.0.0 All public static members of this type are safe for multithreaded operations. No instance members are guaranteed to be thread safe. System.Object There may still be data available in the outgoing network buffer after an application calls the or method. If you want to specify the amount of time that the will attempt to transmit unsent data after closing, create a with the parameter set to true, and the parameter set to the desired amount of time. The parameter is used to indicate how long you would like the to remain connected before timing out. If you do not want the to stay connected for any length of time after closing, create a instance with the parameter set to true and the parameter set to zero. In this case, the will close immediately and any unsent data will be lost. Once created, pass the to the method. If you are sending and receiving data with a , then set the instance in the property. The IP stack computes the default IP protocol time-out period to use based on the round trip time of the connection. In most cases, the time-out computed by the stack is more relevant than one defined by an application. This is the default behavior for a when the property is not set and for a when the property is not set. Specifies whether a will remain connected after a call to the or methods and the length of time it will remain connected, if data remains to be sent. Constructor 1.0.5000.0 2.0.0.0 4.0.0.0 There may still be data available in the outgoing network buffer after you close the . Use the parameter to specify whether you would like the to continue transmitting unsent data after the close method is called. Use the parameter to indicate how long you would like the to attempt transferring unsent data before timing out. If you specify true for the parameter and 0 for the parameter, the will attempt to send data until there is no data left in the outgoing network buffer. If you specify false for the parameter, the will close immediately and any unsent data will be lost. The following table describes the behavior on the and methods based on the possible values of the and parameters when an T:System.Net.Sockets.LingerOption instance is created and set in the or property. Behavior false (disabled), the default value The time-out is not applicable, (default). Attempts to send pending data for a connection-oriented socket (TCP, for example) until the default IP protocol time-out expires. true (enabled) A nonzero time-out Attempts to send pending data until the specified time-out expires, and if the attempt fails, then Winsock resets the connection. true (enabled) A zero timeout. Discards any pending data. For connection-oriented socket (TCP, for example), Winsock resets the connection. The IP stack computes the default IP protocol time-out period to use based on the round trip time of the connection. In most cases, the time-out computed by the stack is more relevant than one defined by an application. This is the default behavior for a socket when the property is not set. When the property stored in the property is set greater than the default IP protocol time-out, the default IP protocol time-out will still apply and override. Initializes a new instance of the class. true to remain connected after the method is called; otherwise, false. The number of seconds to remain connected after the method is called. 0 Property 1.0.5000.0 2.0.0.0 4.0.0.0 System.Boolean to enable lingering after the method is called; otherwise . You can use the property to determine whether the will linger after closing. Change this value to true or false and pass the altered to the method or set the or property.to disable or enable lingering. The following table describes the behavior for the possible values of the property and the property stored in the property. Behavior false (disabled), the default value The time-out is not applicable, (default). Attempts to send pending data for a connection-oriented socket (TCP, for example) until the default IP protocol time-out expires. true (enabled) A nonzero time-out Attempts to send pending data until the specified time-out expires, and if the attempt fails, then Winsock resets the connection. true (enabled) A zero timeout. Discards any pending data. For connection-oriented socket (TCP, for example), Winsock resets the connection. The IP stack computes the default IP protocol time-out period to use based on the round trip time of the connection. In most cases, the time-out computed by the stack is more relevant than one defined by an application. This is the default behavior for a socket when the property is not set. When the property stored in the property is set greater than the default IP protocol time-out, the default IP protocol time-out will still apply and override. Gets or sets a value that indicates whether to linger after the is closed. 0 Property 1.0.5000.0 2.0.0.0 4.0.0.0 System.Int32 A that contains the amount of time, in seconds, to remain connected after calling the method. Use this value if you want to determine how long a closed will attempt to transfer unsent data before timing out. You can also set this value to the desired time-out period, in seconds. If the property is true, and you set to 0, the discards any pending data to send in the outgoing network buffer. If you change this value, you must pass the altered instance to the method or set the or property. The following table describes the behavior for the possible values of the property and the property stored in the property. Behavior false (disabled), the default value The time-out is not applicable, (default). Attempts to send pending data for a connection-oriented socket (TCP, for example) until the default IP protocol time-out expires. true (enabled) A nonzero time-out Attempts to send pending data until the specified time-out expires, and if the attempt fails, then Winsock resets the connection. true (enabled) A zero timeout. Discards any pending data. For connection-oriented socket (TCP, for example), Winsock resets the connection. The IP stack computes the default IP protocol time-out period to use based on the round trip time of the connection. In most cases, the time-out computed by the stack is more relevant than one defined by an application. This is the default behavior for a socket when the property is not set. When the property stored in the property is set greater than the default IP protocol time-out, the default IP protocol time-out will still apply and override. Gets or sets the amount of time to remain connected after calling the method if data remains to be sent. 0 0