Project

General

Profile

Up

_networkCBdownload

Define a callback when datas is downloaded.

Prototype :

fun [ObjNetwork fun [ObjNetwork u0 I S I] u1 u0] ObjNetwork

  • ObjNetwork : a network object created with _networkCreate.

  • fun [ObjNetwork u0 I S I] u1 : a callback. The supplemental arguments are :
    • I : an error code, 0 if no error at this call
    • S : the received packet (a part of the content)
    • I : the size of the received packet
  • .
  • u0 : an user parameter, at your convenience.

Return : ObjNetwork the same object or nil if error.

See also :

Example :

Note :