InetTransport.IncomingMemoryThreshold
InetTransport
See also
Specifies the maximum size of the message which is received to memory buffer.
[C++]
void setIncomingMemoryThreshold(unsigned long Value);
unsigned long getIncomingMemoryThreshold(void);
[Pascal]
property IncomingMemoryThreshold : longint;
[VB6]
Property IncomingMemoryThreshold As Long
[ActiveX]
HRESULT _stdcall IncomingMemoryThreshold([in] long Value );
HRESULT _stdcall IncomingMemoryThreshold([out, retval] long * Value );
[C#]
public int IncomingMemoryThreshold;
[VB.NET]
Public Property IncomingMemoryThreshold As Integer
[Java]
public void setIncomingMemoryThreshold(long value);
public long getIncomingMemoryThreshold();
[Java ME]
public void setIncomingMemoryThreshold(long value);
public long getIncomingMemoryThreshold();
[Palm]
void setIncomingMemoryThreshold(unsigned long Value);
unsigned long getIncomingMemoryThreshold(void);
[DLL]
void __stdcall MCInetTransportSetIncomingMemoryThreshold(HMCInetTransport h, unsigned long value);
unsigned long __stdcall MCInetTransportGetIncomingMemoryThreshold(HMCInetTransport h);
- h - handle to the object that was returned by Create method
This property specifies how large messages are received into temporary files on disk instead of memory. If the message is smaller then the value of this property, memory buffer is created to increase transfer speed. If the message is larger, temporary file is allocated. This rule is only effective, when UseTempFilesForIncoming property is set to true.
To avoid memory overflow on loaded servers it makes sence to receive large messages to files. Also, receiving the messages to files allows MsgConnect to reduce the consequences of attacks that send large amounts of data to overflow the server's memory and stop operations.
|