Functions | |
NUMBER | adhoc.init () |
Initialize Adhoc module. More... | |
NUMBER | adhoc.init (STRING gameid) |
Initialize Adhoc module. More... | |
STRING | adhoc.getmac () |
Obtain physical address (MAC) of our console. More... | |
TABLE | adhoc.scan () |
Obtain a list of available PSP consoles to successfully make an adhoc connection. More... | |
NUMBER | adhoc.gettotal () |
Allows to know the number of the remote PSP available. More... | |
BOOLEAN | adhoc.sendrequest (NUMBER index) |
Request connection to a remote PSP for a time lapse of 30 seconds. More... | |
BOOLEAN | adhoc.sendrequest (NUMBER index, NUMBER timeout) |
Request connection to a remote PSP. More... | |
TABLE | adhoc.getrequest () |
Allow to know which PSP requested a connection. More... | |
NIL | adhoc.accept (NUMBER index) |
Accept connection request. More... | |
NIL | adhoc.reject (NUMBER index) |
Rejects connection request. More... | |
NUMBER | adhoc.send (NUMBER index, STRING data) |
Send data to a Remote PSP (when accepted or successfully connection). More... | |
NUMBER | adhoc.send (NUMBER index, STRING data, NUMBER size) |
Send data to a Remote PSP (when accepted or successfully connection). More... | |
STRING | adhoc.recv (NUMBER index, NUMBER size) |
Allow to receive data from a Remote PSP (when accepted or successfully connection). More... | |
NIL | adhoc.term () |
Finalizes adhoc module. More... | |
Adhoc functions.
NUMBER adhoc.init | ( | ) |
Initialize Adhoc module.
NUMBER adhoc.init | ( | STRING | gameid | ) |
Initialize Adhoc module.
gameid | This is the gameid to be shown as an identifier in the adhoc mode (Maximum 9 characters and must be uppercase). |
STRING adhoc.getmac | ( | ) |
Obtain physical address (MAC) of our console.
TABLE adhoc.scan | ( | ) |
Obtain a list of available PSP consoles to successfully make an adhoc connection.
NUMBER adhoc.gettotal | ( | ) |
Allows to know the number of the remote PSP available.
BOOLEAN adhoc.sendrequest | ( | NUMBER | index | ) |
Request connection to a remote PSP for a time lapse of 30 seconds.
index | index obtained from the adhoc.scan() table. |
BOOLEAN adhoc.sendrequest | ( | NUMBER | index, |
NUMBER | timeout | ||
) |
Request connection to a remote PSP.
index | index obtained from the adhoc.scan() table. |
timeout | (optional) time limit which the application will remain the connection opened. Default to 30 seconds if there is no value. |
TABLE adhoc.getrequest | ( | ) |
Allow to know which PSP requested a connection.
NIL adhoc.accept | ( | NUMBER | index | ) |
Accept connection request.
index | Index of the PSP which request connection. |
NIL adhoc.reject | ( | NUMBER | index | ) |
Rejects connection request.
index | Index of the PSP which request connection. |
NUMBER adhoc.send | ( | NUMBER | index, |
STRING | data | ||
) |
Send data to a Remote PSP (when accepted or successfully connection).
index | Index of the PSP which you want to send data or message. |
data | String with the message or text. |
NUMBER adhoc.send | ( | NUMBER | index, |
STRING | data, | ||
NUMBER | size | ||
) |
Send data to a Remote PSP (when accepted or successfully connection).
index | Index of the PSP which you want to send data or message. |
data | String with the message or text. |
size | Size data to be sending. |
STRING adhoc.recv | ( | NUMBER | index, |
NUMBER | size | ||
) |
Allow to receive data from a Remote PSP (when accepted or successfully connection).
index | Index of the PSP which you want to receive data or messages. |
size | Size data to be received for save them in buffer. Default to 1024 if there is no value. |
NIL adhoc.term | ( | ) |
Finalizes adhoc module.