CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
service_point.h
1
2#pragma once
3
4#include <security/cryptography/x509_certificates/x509_certificate.h>
5#include <system/date_time.h>
6#include <system/multicast_delegate.h>
7#include <system/shared_ptr.h>
8#include <system/uri.h>
9#include <system/version.h>
10
11#include <net/ip_end_point.h>
12
13namespace System { namespace Net {
14
15class ServicePoint;
16using BindIPEndPoint = System::MulticastDelegate<System::SharedPtr<IPEndPoint>(System::SharedPtr<ServicePoint>,
18
23class ASPOSECPP_SHARED_CLASS ServicePoint : public System::Object
24{
26 typedef ServicePoint ThisType;
29
31 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
33 ASPOSECPP_SHARED_RTTI_INFO_DECL();
34
35public:
41 ASPOSECPP_SHARED_API void set_BindIPEndPointDelegate(BindIPEndPoint value);
44 ASPOSECPP_SHARED_API int32_t get_ConnectionLeaseTimeout();
47 ASPOSECPP_SHARED_API void set_ConnectionLeaseTimeout(int32_t value);
50 ASPOSECPP_SHARED_API System::SharedPtr<Uri> get_Address();
53 ASPOSECPP_SHARED_API int32_t get_MaxIdleTime();
56 ASPOSECPP_SHARED_API void set_MaxIdleTime(int32_t value);
59 ASPOSECPP_SHARED_API bool get_UseNagleAlgorithm();
62 ASPOSECPP_SHARED_API void set_UseNagleAlgorithm(bool value);
65 ASPOSECPP_SHARED_API int32_t get_ReceiveBufferSize();
68 ASPOSECPP_SHARED_API void set_ReceiveBufferSize(int32_t value);
71 ASPOSECPP_SHARED_API bool get_Expect100Continue();
74 ASPOSECPP_SHARED_API void set_Expect100Continue(bool value);
77 ASPOSECPP_SHARED_API DateTime get_IdleSince();
80 virtual ASPOSECPP_SHARED_API Version get_ProtocolVersion();
83 ASPOSECPP_SHARED_API String get_ConnectionName();
86 ASPOSECPP_SHARED_API int32_t get_ConnectionLimit();
89 ASPOSECPP_SHARED_API void set_ConnectionLimit(int32_t value);
92 ASPOSECPP_SHARED_API int32_t get_CurrentConnections();
103 ASPOSECPP_SHARED_API bool get_SupportsPipelining();
107 ASPOSECPP_SHARED_API bool CloseConnectionGroup(String connectionGroupName);
112 ASPOSECPP_SHARED_API void SetTcpKeepAlive(bool enabled, int32_t keepAliveTime, int32_t keepAliveInterval);
113
114private:
116 bool m_Expect100Continue;
117};
118}} // namespace System::Net
Represents a specific date and time value on the time continuum. This type should be allocated on sta...
Definition: date_time.h:50
Provides HTTP connection management. Objects of this class should only be allocated using System::Mak...
Definition: service_point.h:24
BindIPEndPoint get_BindIPEndPointDelegate()
Gets the delegate that is used to associate local IPEndPoint with the current instance.
System::SharedPtr< Uri > get_Address()
Returns the server URI to which the current instance connects.
System::SharedPtr< System::Security::Cryptography::X509Certificates::X509Certificate > get_ClientCertificate()
Returns the last client certificate.
void set_BindIPEndPointDelegate(BindIPEndPoint value)
Sets the delegate that is used to associate local IPEndPoint with the current instance.
int32_t get_MaxIdleTime()
Gets an amount of time in milliseconds after which an idle connection will be closed.
bool get_SupportsPipelining()
Returns a value that indicates if the current instance supports the pipeline connections.
String get_ConnectionName()
Returns the connection name.
int32_t get_ConnectionLimit()
Gets the maximum number of connections that are allowed by the current instance.
int32_t get_CurrentConnections()
Returns a number of opened connections.
void set_UseNagleAlgorithm(bool value)
Sets a value that indicates if the Nagle algorithm is used by connections managed by the current inst...
int32_t get_ConnectionLeaseTimeout()
Gets a timeout in milliseconds after which active ServicePoint will be closed.
bool get_UseNagleAlgorithm()
Gets a value that indicates if the Nagle algorithm is used by connections managed by the current inst...
bool CloseConnectionGroup(String connectionGroupName)
Closes and removes connections that belong to the specified connection group.
void set_ConnectionLeaseTimeout(int32_t value)
Sets a timeout in milliseconds after which active ServicePoint will be closed.
void set_Expect100Continue(bool value)
Sets a value that indicates if the 100-Continue behavior is used.
void set_MaxIdleTime(int32_t value)
Sets an amount of time in milliseconds after which an idle connection will be closed.
DateTime get_IdleSince()
Returns a date and time of the latest connection to a host.
virtual Version get_ProtocolVersion()
Returns the HTTP version.
void set_ReceiveBufferSize(int32_t value)
Sets the size of the receive buffer.
bool get_Expect100Continue()
Gets a value that indicates if the 100-Continue behavior is used.
void set_ConnectionLimit(int32_t value)
Sets the maximum number of connections that are allowed by the current instance.
System::SharedPtr< System::Security::Cryptography::X509Certificates::X509Certificate > get_Certificate()
Returns a certificate that is used by the current instance.
int32_t get_ReceiveBufferSize()
Gets the size of the receive buffer.
void SetTcpKeepAlive(bool enabled, int32_t keepAliveTime, int32_t keepAliveInterval)
Sets the value that indicates if the 'Keep-Alive' option is enabled.
Base class that enables using methods available for System.Object class in C#. All non-trivial classe...
Definition: object.h:62
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
String class used across the library. Is a substitute for C# System.String when translating code....
Definition: string.h:122
Represents a version number. This type should be allocated on stack and passed to functions by value ...
Definition: version.h:15
System::MulticastDelegate< System::SharedPtr< IPEndPoint >(System::SharedPtr< ServicePoint >, System::SharedPtr< IPEndPoint >, int32_t)> BindIPEndPoint
Definition: service_point.h:17
Definition: db_command.h:9