-
Notifications
You must be signed in to change notification settings - Fork 11
OryUIHTTPSQueue
Adds an item to the https queue.
Clears all items from a https queue.
Creates a https queue.
Deletes a https queue.
Searches for and returns the index/slot number where a match was found.
Searches for and returns the index/slot number where a match was found.
Returns the number of times the https queue has failed to gain a success response code.
Returns the number of items in the https queue.
Returns the last successful https queue request name.
Returns the last successful https queue response.
Returns the last successful https queue response code.
Returns the last successful https queue script name.
Required to control the https queue.
Searches for and returns true (1) where a match was found.
Searches for and returns true (1) where a match was found.
Prints a log on screen of the https queue and the items within it.
Updates a https queue. See Available Parameters section below for the options.
| Parameter | Description |
|---|---|
| delay | The delay/pause that should be applied between each request. |
| domain | The domain name the https requests are being sent to. Required. |
| ssl | Whether or not the https request are being sent via ssl or not. |
| timeout | The maximum time in milliseconds before a request times out. |
| Parameter | Description |
|---|---|
| addToFront | Whether or not to add item to the front of the queue. |
| file | The file that's being sent to the server. |
| name | The unique name to give to the queue item. |
| postData | The post data that is being sent to the server. i.e. username=OryUI&topScore=10000 |
| script | The page on the server that the data is being sent to. |
| stickUntilComplete | Whether or not the item should stay in the first slot of the queue until completed/successful. |
Example
queue = OryUICreateHTTPSQueue("domain:mygame.com;ssl:true;timeout:10000")
OryUIAddItemToHTTPSQueue(queue, "name:UpdateScoreBoard;script:/app/updatescoreboard.php;postData:username=OryUI&score=10000;addToFront:true;stickUntilComplete:true")
OryUIAddItemToHTTPSQueue(queue, "name:GetScoreBoard;script:/app/getscoreboard.php")
do
// All of your main app code here.
// ...
OryUIInsertHTTPSQueueListener(queue)
if (OryUIGetHTTPSQueueRequestScript(queue) = "app/getscoreboard.php")
ReceivedScoreBoardData()
elseif (OryUIGetHTTPSQueueRequestScript(queue) = "app/updatescoreboard.php")
// Score board updated
// ... do something
endif
Sync()
loop