1
0
Fork 0
mirror of https://repo.or.cz/socat.git synced 2025-07-15 23:53:25 +00:00

New feature POSIX message queues (MQ)

This commit is contained in:
Gerhard Rieger 2023-09-30 19:32:14 +02:00
parent e1aadc577d
commit 7d6295114b
21 changed files with 876 additions and 14 deletions

View file

@ -8,6 +8,7 @@
#include "xiosysincludes.h"
#include "xioopen.h"
#include "xio-posixmq.h"
#include "xio-readline.h"
#include "xio-openssl.h"
@ -139,6 +140,14 @@ ssize_t xiowrite(xiofile_t *file, const void *buff, size_t bytes) {
}
break;
#if WITH_POSIXMQ
case XIOWRITE_POSIXMQ:
if ((writt = xiowrite_posixmq(pipe, buff, bytes)) < 0) {
return -1;
}
break;
#endif /* WITH_POSIXMQ */
#if WITH_OPENSSL
case XIOWRITE_OPENSSL:
/* this function prints its own error messages */