diff options
author | Mattias Andrée <maandree@operamail.com> | 2015-08-26 02:17:12 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2015-08-26 02:17:12 +0200 |
commit | 92a6194673aa19fe9db5f6f32ce95972700daf11 (patch) | |
tree | 79b4d95c29b3777c21995ebdd85c2d59a4afafd4 /src/libmdsclient/comm.c | |
parent | libmdsclient: connect to the display (parsing is not yet implemented) (diff) | |
download | mds-92a6194673aa19fe9db5f6f32ce95972700daf11.tar.gz mds-92a6194673aa19fe9db5f6f32ce95972700daf11.tar.bz2 mds-92a6194673aa19fe9db5f6f32ce95972700daf11.tar.xz |
libmdsclient: implement support for domain sockets
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | src/libmdsclient/comm.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/libmdsclient/comm.c b/src/libmdsclient/comm.c index 11d03d4..a4c5fff 100644 --- a/src/libmdsclient/comm.c +++ b/src/libmdsclient/comm.c @@ -24,8 +24,6 @@ #include <sys/socket.h> #include <string.h> -#include <libmdsserver/config.h> - #define min(a, b) ((a) < (b) ? (a) : (b)) @@ -137,12 +135,13 @@ void libmds_connection_free(libmds_connection_t* restrict this) * otherwise, `errno` will have been set to describe * the error. * - * @throws EFAULT If the display server's address is not properly - * formatted, or specifies an unsupported protocol, - * `libmds_parse_display_adress` can be used to - * figure out what is wrong. - * @throws Any error specified for socket(2) - * @throws Any error specified for connect(2), except EINTR + * @throws EFAULT If the display server's address is not properly + * formatted, or specifies an unsupported protocol, + * `libmds_parse_display_adress` can be used to + * figure out what is wrong. + * @throws ENAMETOOLONG The filename of the target socket is too long + * @throws Any error specified for socket(2) + * @throws Any error specified for connect(2), except EINTR */ int libmds_connection_establish(libmds_connection_t* restrict this, const char** restrict display) { |