summaryrefslogtreecommitdiffstats
path: root/sock_stuff.h
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2009-05-04 18:18:40 +0200
committerGravatar Nikias Bassen2009-05-04 18:18:40 +0200
commit7364e09f6849076c710ac9ce52a5d5fd2445e19c (patch)
treeb1435d14501f704900142c0a5f7b11ea5f3217fa /sock_stuff.h
parentcae80628faeeb19a88a28d7fb058e74f8b2743ed (diff)
downloadusbmuxd-7364e09f6849076c710ac9ce52a5d5fd2445e19c.tar.gz
usbmuxd-7364e09f6849076c710ac9ce52a5d5fd2445e19c.tar.bz2
Use autotools build system and add license
Signed-off-by: Nikias Bassen <nikias@gmx.li>
Diffstat (limited to 'sock_stuff.h')
-rw-r--r--sock_stuff.h28
1 files changed, 0 insertions, 28 deletions
diff --git a/sock_stuff.h b/sock_stuff.h
deleted file mode 100644
index 190f7e1..0000000
--- a/sock_stuff.h
+++ /dev/null
@@ -1,28 +0,0 @@
-#ifndef __SOCK_STUFF_H
-#define __SOCK_STUFF_H
-
-#include <stdint.h>
-
-enum fd_mode {
- FD_READ,
- FD_WRITE,
- FD_EXCEPT
-};
-typedef enum fd_mode fd_mode;
-
-int create_unix_socket(const char *filename);
-int connect_unix_socket(const char *filename);
-int create_socket(uint16_t port);
-int connect_socket(const char *addr, uint16_t port);
-int check_fd(int fd, fd_mode fdm, unsigned int timeout);
-
-int recv_buf(int fd, void *data, size_t size);
-int peek_buf(int fd, void *data, size_t size);
-int recv_buf_timeout(int fd, void *data, size_t size, int flags,
- unsigned int timeout);
-
-int send_buf(int fd, void *data, size_t size);
-
-void sock_stuff_set_verbose(int level);
-
-#endif /* __SOCK_STUFF_H */