1// This file is part of SmallBASIC
2//
3// Network library (byte-stream sockets)
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#ifdef HAVE_CONFIG_H
11# include <config.h>
12#endif
13
14#include "inet.h"
15
16#if defined(INET_UNSUP)
17 int net_init(void) { return 0; }
18 int net_close(void) { return 0; }
19 void net_print(socket_t s, const char *str) {}
20 void net_printf(socket_t s, const char *fmt, ...) {}
21 void net_send(socket_t s, const char *str, size_t size) {}
22 int net_input(socket_t s, char *buf, int size, const char *delim) { return 0; }
23 int net_read(socket_t s, char *buf, int size) { return 0; }
24 socket_t net_connect(const char *server_name, int server_port) { return 0; }
25 socket_t net_listen(int server_port) { return 0; }
26 void net_disconnect(socket_t s) {}
27 int net_peek(socket_t s) { return 0; }
28#elif defined(_UnixOS)
29 #include "inet2.c"
30#endif
31
32