|
poser
A C framework for POsix SERvices
|
Options for creating a UNIX socket client. More...
#include <poser/core/client.h>
Public Member Functions | |
| PSC_UnixClientOpts * | PSC_UnixClientOpts_create (const char *sockname) |
| PSC_UnixClientOpts constructor. | |
| void | PSC_UnixClientOpts_readBufSize (PSC_UnixClientOpts *self, size_t sz) |
| Set read buffer size. | |
| void | PSC_UnixClientOpts_destroy (PSC_UnixClientOpts *self) |
| PSC_UnixClientOpts destructor. | |
Options for creating a UNIX socket client.
| PSC_UnixClientOpts * PSC_UnixClientOpts_create | ( | const char * | sockname | ) |
PSC_UnixClientOpts constructor.
Creates an options object initialized to default values.
| sockname | the name/path of the local socket to connect to |
| void PSC_UnixClientOpts_destroy | ( | PSC_UnixClientOpts * | self | ) |
PSC_UnixClientOpts destructor.
| self | the PSC_UnixClientOpts |
| void PSC_UnixClientOpts_readBufSize | ( | PSC_UnixClientOpts * | self, |
| size_t | sz | ||
| ) |
Set read buffer size.
Sets the size of the buffer used for reading from the connection, in bytes. The default value is 16 kiB.
| self | the PSC_UnixClientOpts |
| sz | the size of the read buffer, must be > 0 |