CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
linger_option.h
1
2#pragma once
3
4#include <system/object.h>
5#include <cstdint>
6
7namespace System {
8namespace Net {
9namespace Sockets {
10
16class ASPOSECPP_SHARED_CLASS LingerOption : public System::Object
17{
19 typedef LingerOption ThisType;
22
24 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
26 ASPOSECPP_SHARED_RTTI_INFO_DECL();
27
28public:
31 ASPOSECPP_SHARED_API bool get_Enabled();
34 ASPOSECPP_SHARED_API void set_Enabled(bool value);
37 ASPOSECPP_SHARED_API int32_t get_LingerTime();
40 ASPOSECPP_SHARED_API void set_LingerTime(int32_t value);
41
45 ASPOSECPP_SHARED_API LingerOption(bool enable, int32_t seconds);
46};
47} // namespace Sockets
48} // namespace Net
49} // namespace System
Specifies whether a socket will remain connected after a call to the Close() or Close() methods....
Definition: linger_option.h:17
LingerOption(bool enable, int32_t seconds)
Constructs a new instance.
void set_LingerTime(int32_t value)
Sets a delay timeout in seconds.
void set_Enabled(bool value)
Sets a value that indicates if the socket will delay closing in an attempt to send all pending data.
int32_t get_LingerTime()
Gets a delay timeout in seconds.
bool get_Enabled()
Gets a value that indicates if the socket will delay closing in an attempt to send all pending data.
Base class that enables using methods available for System.Object class in C#. All non-trivial classe...
Definition: object.h:62
Definition: db_command.h:9