1#ifndef POSER_CORE_SERVER_H
2#define POSER_CORE_SERVER_H
50 CMETHOD ATTR_NONNULL((2));
73 const char *certfile,
const char *keyfile)
74 CMETHOD ATTR_NONNULL((2)) ATTR_NONNULL((3));
107PSC_UnixServerOpts_create(const
char *name)
108 ATTR_RETNONNULL ATTR_NONNULL((1));
178 CMETHOD ATTR_RETNONNULL ATTR_PURE;
193 CMETHOD ATTR_RETNONNULL ATTR_PURE;
A server listening on a socket and accepting connections.
Options for creating a TCP server.
void PSC_TcpServerOpts_bind(PSC_TcpServerOpts *self, const char *bindhost)
Bind to a specific hostname or address.
PSC_TcpServerOpts * PSC_TcpServerOpts_create(int port)
PSC_TcpServerOpts constructor.
void PSC_TcpServerOpts_enableTls(PSC_TcpServerOpts *self, const char *certfile, const char *keyfile)
Enable TLS for the server.
void PSC_TcpServerOpts_readBufSize(PSC_TcpServerOpts *self, size_t sz)
Set read buffer size.
Options for creating a local UNIX server.
declaration of the PSC_Proto enum
PSC_Proto
Protocol to use for TCP connections.
Definition: proto.h:10