aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmdsclient/comm.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-08-26 02:17:12 +0200
committerMattias Andrée <maandree@operamail.com>2015-08-26 02:17:12 +0200
commit92a6194673aa19fe9db5f6f32ce95972700daf11 (patch)
tree79b4d95c29b3777c21995ebdd85c2d59a4afafd4 /src/libmdsclient/comm.c
parentlibmdsclient: connect to the display (parsing is not yet implemented) (diff)
downloadmds-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.c15
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)
{