|
|
ITK Programmer's Guide |
||||||||||||
|
Table of contents | Intro | General
| TCP Low Level | TCP High Level | UDP | DNS
| PPP
|
|||||||||||||
|
ITK_Init |
||||||||||||||||
|
|
|
|||||||||||||||
|
Syntax: |
result := ITK_Init (registrationCode)
|
|||||||||||||||
|
Description: |
Register the Internet Toolkit plug-in for standalone or server use. You must call ITK_Init with a valid registration key, otherwise ITK will operate in demonstration mode - it will cease to function after 20 minutes.
|
|||||||||||||||
|
Warning: |
Just call this routine once in your application prior to any other call to ITK , otherwise the "demonstration dialog" will show up (the best place to do this is the "On Startup" method). If you are using ITK in 4D Server's stored procedures, you will have to call ITK_Init at the beginning of the first method called (one call to ITK_Init is enough, you don't need to call it in all stored procedures), otherwise the demonstration dialog will show up on 4D Server. Multiple calls to ITK_Init are allowed. The plug-in will be activated if at least one valid key is used, and all subsequent calls to ITK_Init will return 0.
|
|||||||||||||||
|
Params: |
|
|||||||||||||||
|
Example: |
C_LONGINT ($result) |
|||||||||||||||
|
ITK_TCPInfos |
|||||||||||||||||||||||||||||||
|
|
|
||||||||||||||||||||||||||||||
|
Syntax: |
result := ITK_TCPInfos (localIP; version1; version2; ITKversion)
|
||||||||||||||||||||||||||||||
|
Description: |
Returns global information about the TCP/IP layers.
|
||||||||||||||||||||||||||||||
|
Params: |
|
||||||||||||||||||||||||||||||
|
Example: |
$err := ITK_TCPInfos(locAddr;TCPvers;OTvers) |
||||||||||||||||||||||||||||||
|
ITK_TCPGetStrm |
||||||||||||||||
|
|
|
|||||||||||||||
|
Syntax: |
result := ITK_TCPGetStrm (index)
|
|||||||||||||||
|
Description: |
This routine allows to retrieve the list of all current TCP streams allocated by ITK.
|
|||||||||||||||
|
Params: |
|
|||||||||||||||
|
Example: |
$nbStrm := ITK_TCPGetStrm(0) ` get the number of allocated streams |
|||||||||||||||
|
ITK_TCPGlobInfo |
||||||||||||||||
|
|
|
|||||||||||||||
|
Syntax: |
result := ITK_TCPGlobInfo (infoSelector)
|
|||||||||||||||
|
Description: |
Returns global information about the TCP layers.
|
|||||||||||||||
|
Params: |
|
|||||||||||||||
|
Example: |
maxTCPstrm := ITK_TCPGlobInfo(5) ` max. number of streams |
|||||||||||||||