From 6e9c41a892ed0e0da326e0278b3221ce3f5713b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Mon, 6 Oct 2014 14:00:40 +0200 Subject: Initial import of sane-backends version 1.0.24-1.2 --- include/sane/sanei_tcp.h | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 include/sane/sanei_tcp.h (limited to 'include/sane/sanei_tcp.h') diff --git a/include/sane/sanei_tcp.h b/include/sane/sanei_tcp.h new file mode 100644 index 0000000..0c3aeb4 --- /dev/null +++ b/include/sane/sanei_tcp.h @@ -0,0 +1,37 @@ +/* sane - Scanner Access Now Easy. + * Copyright (C) 2006 Tower Technologies + * Author: Alessandro Zummo + * This file is part of the SANE package. + * + * This file is in the public domain. You may use and modify it as + * you see fit, as long as this copyright message is included and + * that there is an indication as to what modifications have been + * made (if any). + * + * SANE is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. + * + * Header file for TCP/IP communications. + */ + +#ifndef sanei_tcp_h +#define sanei_tcp_h + +#include + +#ifdef HAVE_WINSOCK2_H +#include +#endif +#ifdef HAVE_SYS_SOCKET_H +#include +#include +#endif +#include + +extern SANE_Status sanei_tcp_open(const char *host, int port, int *fdp); +extern void sanei_tcp_close(int fd); +extern ssize_t sanei_tcp_write(int fd, const u_char * buf, int count); +extern ssize_t sanei_tcp_read(int fd, u_char * buf, int count); + +#endif /* sanei_tcp_h */ -- cgit v1.2.3