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)
14extern "C" {
15#endif
16
17int sockcl_open(dev_file_t *f);
18int sockcl_close(dev_file_t *f);
19int sockcl_write(dev_file_t *f, byte *data, uint32_t size);
20int sockcl_read(dev_file_t *f, byte *data, uint32_t size);
21int sockcl_eof(dev_file_t *f);
22int sockcl_length(dev_file_t *f);
23int http_open(dev_file_t *f);
24int http_read(dev_file_t *f, var_t *var_p);
25
26#if defined(__cplusplus)
27}
28#endif
29
30#endif
31