Add support for serial devices as socket streams on unix.

This commit is contained in:
Sam Roberts
2012-02-23 17:12:37 -08:00
parent 3b19f2a7ed
commit b1f7c349b5
6 changed files with 265 additions and 1 deletions

View File

@ -68,6 +68,9 @@ const char *socket_strerror(int err);
int socket_send(p_socket ps, const char *data, size_t count,
size_t *sent, p_timeout tm);
int socket_recv(p_socket ps, char *data, size_t count, size_t *got, p_timeout tm);
int socket_write(p_socket ps, const char *data, size_t count,
size_t *sent, p_timeout tm);
int socket_read(p_socket ps, char *data, size_t count, size_t *got, p_timeout tm);
const char *socket_ioerror(p_socket ps, int err);
int socket_gethostbyaddr(const char *addr, socklen_t len, struct hostent **hp);