Menu

[b84aab]: / src / common / fs_socket_client.h  Maximize  Restore  History

Download this file

31 lines (25 with data), 739 Bytes

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