1#ifndef POSER_CORE_SERVER_H
2#define POSER_CORE_SERVER_H
51 CMETHOD ATTR_NONNULL((2));
74 const char *certfile,
const char *keyfile)
75 CMETHOD ATTR_NONNULL((2)) ATTR_NONNULL((3));
135 CMETHOD ATTR_NONNULL((3));
168PSC_UnixServerOpts_create(const
char *name)
169 ATTR_RETNONNULL ATTR_NONNULL((1));
239 CMETHOD ATTR_RETNONNULL ATTR_PURE;
254 CMETHOD ATTR_RETNONNULL ATTR_PURE;
declarations for the PSC_CertInfo class
int(* PSC_CertValidator)(void *receiver, const PSC_CertInfo *info)
Custom certificate validator.
Definition: certinfo.h:24
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