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

@ -9,6 +9,7 @@
#include "xio-termios.h"
#include "xio-socket.h"
#include "xio-posixmq.h"
#include "xio-readline.h"
#include "xio-openssl.h"
@ -115,6 +116,17 @@ ssize_t xioread(xiofile_t *file, void *buff, size_t bufsiz) {
return bytes;
break;
#if WITH_POSIXMQ
case XIOREAD_POSIXMQ:
if ((bytes = xioread_posixmq(pipe, buff, bufsiz)) < 0) {
return -1;
}
if (pipe->dtype & XIOREAD_RECV_ONESHOT) {
pipe->eof = 2;
}
break;
#endif /* WITH_POSIXMQ */
#if WITH_READLINE
case XIOREAD_READLINE:
if ((bytes = xioread_readline(pipe, buff, bufsiz)) < 0) {