00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef sanei_udp_h
00019 #define sanei_udp_h
00020
00021 #include <sane/sane.h>
00022
00023 #include <netinet/in.h>
00024 #include <netdb.h>
00025
00026 extern SANE_Status sanei_udp_open(const char *host, int port, int *fdp);
00027 extern SANE_Status sanei_udp_open_broadcast(int *fdp);
00028 extern void sanei_udp_close(int fd);
00029 extern ssize_t sanei_udp_write(int fd, const u_char * buf, int count);
00030 extern ssize_t sanei_udp_read(int fd, u_char * buf, int count);
00031 extern ssize_t sanei_udp_write_broadcast(int fd, int port, const u_char * buf, int count);
00032 extern ssize_t sanei_udp_recvfrom(int fd, u_char * buf, int count, char **fromp);
00033
00034 #endif