System::Net::Sockets::LingerOption class
Contents
[
Hide
]LingerOption class
Specifies whether a socket will remain connected after a call to the Close() or Close() methods. It also specifies the period the socket will remain connected if sending of the data continues. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.
class LingerOption : public System::Object
Methods
Method | Description |
---|---|
get_Enabled() | RTTI information. |
get_LingerTime() | Gets a delay timeout in seconds. |
LingerOption(bool, int32_t) | Constructs a new instance. |
set_Enabled(bool) | Sets a value that indicates if the socket will delay closing in an attempt to send all pending data. |
set_LingerTime(int32_t) | Sets a delay timeout in seconds. |
See Also
- Class Object
- Namespace System::Net::Sockets
- Library Aspose.PDF for C++