24,7 → 24,7 |
using system function 75, 6. |
- returns 0 on error, identifier otherwise |
|
process(identifier); |
receive(identifier); |
identifier = identifier which one of the previous functions returned |
This procedure will handle all incoming data for a connection and place it in the buffer. |
As long as the procedure expects more data, -1 is returned and the procedure must be called again. |
42,4 → 42,11 |
In content_length you'll find the length of the content. |
In content_received, you'll find the number of content bytes already received. |
|
send(identifier, *dataptr, datalength); |
identifier = identifier which one of the previous functions returned |
*dataptr = pointer to the data you want to send |
datalength = length of the data to send (in bytes) |
This procedure can be used to send data to the server (POST) |
- returns number of bytes sent, -1 on error |
|
All procedures are non blocking! |