
169
roAssetFetcherEvent
This event is generated by an roAssetFetcher object when a file transfer succeeds or fails, or when population of the
asset pool as a whole succeeds or fails.
Interfaces: ifAssetFetcherEvent, ifUserData
The ifAssetFetcherEvent interface provides the following:
• GetEvent() As Integer: Returns an integer indicating the result of an roAssetFetcher download attempt:
o 1: POOL_EVENT_FILE_DOWNLOADED
o -1: POOL_EVENT_FILE_FAILED
o 2: POOL_EVENT_ALL_DOWNLOADED
o -2: POOL_EVENT_ALL_FAILED
• GetName() As String
• GetResponseCode() As Integer: Returns the protocol response code associated with an event. The following
codes indicate success:
o 200: Successful HTTP transfer
o 226: Successful FTP transfer
o 0: Successful local file transfer
For unexpected errors, the return value is negative. There are many possible negative errors from the CURL library,
but it is often best to look at the text version by calling GetFailureReason().
Here are some potential errors. Not all of them can be generated by a BrightSign player:
CURLE_UNSUPPORTED_PROTOCOL
CURLE_COULDNT_RESOLVE_PROXY
Komentarze do niniejszej Instrukcji