|
ITK Programmer's Guide |
||||||||||||
Table of contents |
Intro | General
| TCP Low Level |
TCP High Level |
UDP | DNS
| PPP
|
ITK_Init |
|||||||||||||||||||||
|
|
||||||||||||||||||||
Syntax: |
result := ITK_Init (licence1;licence2)
|
||||||||||||||||||||
Description: |
Initialises ITK by giving ITK it's license number.
|
||||||||||||||||||||
Warning: |
If both license numbers are empty or invalid, ITK will run in demo mode and beep three times. Just call this routine once in your application prior to any other call to ITK , otherwise the "demo dialog" will show up (the best place to do this is the "Startup" procedure or the "On Startup" method of 4Dv6). If you are using ITK in 4D Server's stored procedures, you will have to call ITK_Init at the beginning of those procedures (one call to ITK_Init is enough, you don't need to call it il all stored procedures), otherwise the "demo dialog" will show up on 4D Server.
|
||||||||||||||||||||
Note: |
In ITKv1.1 ot ITKv2.0, the secondary license number can be used in multiplatform applications. In that case, you can pass both Mac and Windows license numbers in one ITK_Init call. In ITKv2.5, the secondary license number is used to pass the SSL server license number. For SSL servers, you must pass both license numbers: the ITK Pro license number as the first parameter, and the SSL server license number in the second parameter. Here is the format of ITK license numbers since ITKv1.0:
|
||||||||||||||||||||
Params: |
|
||||||||||||||||||||
Example: |
$err := ITK_Init("ITK...";"ITK...") If ($err <0) ALERT("Your TCP/IP layers couldn't be initialised !") End If |
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) if (TCPvers=5) ` we're under Windows foldSep := "\" else foldSep := ":" end if |
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 For ($i;1;$nbStrm) $status := ITK_TCPStatus(ITK_TCPGetStrm($i)) End For |
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 |