mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-02-06 02:59:12 +00:00
All platforms except Android use normal sockets (although this is easy to change and the choice is keyed off a single define). This gives consistent handling to unix domain sockets which were previously a mishmash where some were always normal, some always abstract and some chose (but in different ways). It also gives consistent error checking. Doesn't pass tests yet though.
6 lines
158 B
C
6 lines
158 B
C
int socket_bind(const char *name);
|
|
void socket_setname(struct sockaddr_un *sockname, const char *name, socklen_t *len);
|
|
void socket_done(const char *name);
|
|
|
|
|