Gentee Programming Language > Documentation > Libraries | Download documentation |
When some functions are called, you can specify a function for handing incoming notifications. In particular, it allows you to show the working process to the user. This handling function must have the following structure.
uint inetnotify_func( uint code, inetnotify ni )
code Message code. $NFYINET_ERROR An error occurred. The code of the error can be got with the help of the inet_error function. $NFYINET_CONNECT Server connection. $NFYINET_SEND Sending a request. $NFYINET_POST Sending data. $NFYINET_HEAD Processing the header. ni.param points to httpinfo. $NFYINET_REDIRECT Request redirection. ni.sparam contains the new URL. $NFYINET_GET Data is received. ni.param contains the total size of all data. $NFYINET_PUT Data is sent. ni.param contains the total size of all data. $NFYFTP_RESPONSE Response of the FTP server. The field ni.head contains it. $NFYFTP_SENDCMD Sending a command to the FTP server. The field ni.head contains it. $NFYFTP_NOTPASV Passive mode with the FTP server is unavailable. $NFYINET_END The connection is terminated. ni The variable of the inetnotify type with additional data.
The function must return 1 to continue working and 0 otherwise.
See also![]() |
![]() Copyright © 2004-2006 Gentee Inc. All rights reserved. ![]() |