Rev 4986 | Rev 5534 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4986 | Rev 4996 | ||
---|---|---|---|
Line 22... | Line 22... | ||
22 | The content itself must be send to the socket (which you can find in the structure), |
22 | The content itself must be send to the socket (which you can find in the structure), |
23 | using system function 75, 6. |
23 | using system function 75, 6. |
24 | - returns 0 on error, identifier otherwise |
24 | - returns 0 on error, identifier otherwise |
25 | 25 | ||
Line 26... | Line 26... | ||
26 | process(identifier); |
26 | receive(identifier); |
27 | identifier = identifier which one of the previous functions returned |
27 | identifier = identifier which one of the previous functions returned |
28 | This procedure will handle all incoming data for a connection and place it in the buffer. |
28 | This procedure will handle all incoming data for a connection and place it in the buffer. |
29 | As long as the procedure expects more data, -1 is returned and the procedure must be called again. |
29 | As long as the procedure expects more data, -1 is returned and the procedure must be called again. |
30 | - When transfer is done, the procedure will return 0. |
30 | - When transfer is done, the procedure will return 0. |
Line 40... | Line 40... | ||
40 | In content_ptr you'll find a pointer to the actual content. |
40 | In content_ptr you'll find a pointer to the actual content. |
41 | In content_length you'll find the length of the content. |
41 | In content_length you'll find the length of the content. |
42 | In content_received, you'll find the number of content bytes already received. |
42 | In content_received, you'll find the number of content bytes already received. |
43 | 43 | ||
Line -... | Line 44... | ||
- | 44 | send(identifier, *dataptr, datalength); |
|
- | 45 | identifier = identifier which one of the previous functions returned |
|
- | 46 | *dataptr = pointer to the data you want to send |
|
- | 47 | datalength = length of the data to send (in bytes) |
|
- | 48 | This procedure can be used to send data to the server (POST) |
|
- | 49 | - returns number of bytes sent, -1 on error |
|
- | 50 | ||
44 | All procedures are non blocking! |
51 | All procedures are non blocking! |
45 | 52 |