inetnotify_func
Message handling function. 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 parameters.
func uint inetnotify_func (
uint code,
inetnotify ni
)
Parameters
| 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. | | $NFYINET_END | The connection is terminated. | | $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. |
|
| ni |
The variable of the inetnotify type with additional data. |
Return value
The function must return 1 to continue working and 0 otherwise.