diff options
author | Sam Roberts <vieuxtech@gmail.com> | 2012-02-23 17:12:37 -0800 |
---|---|---|
committer | Sam Roberts <vieuxtech@gmail.com> | 2012-04-11 13:45:59 -0700 |
commit | b1f7c349b5714ebe304f93e43576a0ff3f721fc1 (patch) | |
tree | d3c4f5539507be4fe69452f100e8843ee55567ac /src/socket.h | |
parent | 3b19f2a7edbcde798a9cf5f1f6175d360e891744 (diff) | |
download | luasocket-b1f7c349b5714ebe304f93e43576a0ff3f721fc1.tar.gz luasocket-b1f7c349b5714ebe304f93e43576a0ff3f721fc1.tar.bz2 luasocket-b1f7c349b5714ebe304f93e43576a0ff3f721fc1.zip |
Add support for serial devices as socket streams on unix.
Diffstat (limited to 'src/socket.h')
-rw-r--r-- | src/socket.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/socket.h b/src/socket.h index de5d79f..debb13a 100644 --- a/src/socket.h +++ b/src/socket.h | |||
@@ -68,6 +68,9 @@ const char *socket_strerror(int err); | |||
68 | int socket_send(p_socket ps, const char *data, size_t count, | 68 | int socket_send(p_socket ps, const char *data, size_t count, |
69 | size_t *sent, p_timeout tm); | 69 | size_t *sent, p_timeout tm); |
70 | int socket_recv(p_socket ps, char *data, size_t count, size_t *got, p_timeout tm); | 70 | int socket_recv(p_socket ps, char *data, size_t count, size_t *got, p_timeout tm); |
71 | int socket_write(p_socket ps, const char *data, size_t count, | ||
72 | size_t *sent, p_timeout tm); | ||
73 | int socket_read(p_socket ps, char *data, size_t count, size_t *got, p_timeout tm); | ||
71 | const char *socket_ioerror(p_socket ps, int err); | 74 | const char *socket_ioerror(p_socket ps, int err); |
72 | 75 | ||
73 | int socket_gethostbyaddr(const char *addr, socklen_t len, struct hostent **hp); | 76 | int socket_gethostbyaddr(const char *addr, socklen_t len, struct hostent **hp); |