| 1 | // This file is part of SmallBASIC |
| 2 | // |
| 3 | // BSD sockets driver (byte-stream client) |
| 4 | // |
| 5 | // This program is distributed under the terms of the GPL v2.0 or later |
| 6 | // Download the GNU Public License (GPL) from www.gnu.org |
| 7 | // |
| 8 | // Copyright(C) 2000 Nicholas Christopoulos |
| 9 | |
| 10 | #if !defined(FS_SOCKET_CLIENT_H) |
| 11 | #define FS_SOCKET_CLIENT_H |
| 12 | |
| 13 | #if defined(__cplusplus) |
| 14 | extern "C" { |
| 15 | #endif |
| 16 | |
| 17 | int sockcl_open(dev_file_t *f); |
| 18 | int sockcl_close(dev_file_t *f); |
| 19 | int sockcl_write(dev_file_t *f, byte *data, uint32_t size); |
| 20 | int sockcl_read(dev_file_t *f, byte *data, uint32_t size); |
| 21 | int sockcl_eof(dev_file_t *f); |
| 22 | int sockcl_length(dev_file_t *f); |
| 23 | int http_open(dev_file_t *f); |
| 24 | int http_read(dev_file_t *f, var_t *var_p); |
| 25 | |
| 26 | #if defined(__cplusplus) |
| 27 | } |
| 28 | #endif |
| 29 | |
| 30 | #endif |
| 31 | |