Difference between revisions of "Midware TMWTable.Close"

From Overbyte
Jump to navigation Jump to search
(Created page with ' Main page -> Midware component reference -> TMWTable -> Close == Definition …')
 
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
  
 
== Definition ==
 
== Definition ==
 +
 +
'''procedure''' Close;
  
 
== Description ==
 
== Description ==
 +
 +
Close the communication with the application server. Closing communication will lower pressure on application server, but will require time to establish it again for next request. This may be a problem on the internet. Communication will be established much faster if you use an IP address instead of a hostname because there is no need for name resolution which is often a very long process.
 +
 +
On a LAN, there is no problem to close communication after each request, specially if you use an IP address and not a hostname.
 +
 +
Note: Using IP address in a program is not recommanded because IP addresses may change. You should use a hostname and resolve the hostname to an IP address at startup and then use the IP address for the program duration.

Latest revision as of 12:32, 24 May 2011

Main page -> Midware component reference -> TMWTable -> Close

Definition

procedure Close;

Description

Close the communication with the application server. Closing communication will lower pressure on application server, but will require time to establish it again for next request. This may be a problem on the internet. Communication will be established much faster if you use an IP address instead of a hostname because there is no need for name resolution which is often a very long process.

On a LAN, there is no problem to close communication after each request, specially if you use an IP address and not a hostname.

Note: Using IP address in a program is not recommanded because IP addresses may change. You should use a hostname and resolve the hostname to an IP address at startup and then use the IP address for the program duration.