7 A Linux/Unix toolset and driver for Nokia mobile phones.
9 Copyright (C) 2002 Jan Kratochvil
11 Released under the terms of the GNU GPL, see file COPYING for more details.
15 #ifndef __devices_tcp_h
16 #define __devices_tcp_h
20 /* FIXME: this should be solved in config.h in 0.4.0 */
22 typedef void * __ptr_t;
29 int tcp_open(__const char *__file);
30 int tcp_close(int __fd);
32 int tcp_opendevice(__const char *__file, int __with_async);
34 size_t tcp_read(int __fd, __ptr_t __buf, size_t __nbytes);
35 size_t tcp_write(int __fd, __const __ptr_t __buf, size_t __n);
37 int tcp_select(int fd, struct timeval *timeout);
39 #endif /* __devices_tcp_h */