diff options
author | June McEnroe <june@causal.agency> | 2019-11-10 15:09:32 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2019-11-10 15:09:32 -0500 |
commit | 510e4e18d1ce46d8a1ae2ed5eff54304598c1529 (patch) | |
tree | c09dcf116541e85fdcb7f245c72ac59b5fb822eb /local.c | |
parent | Remove extended-join and invite-notify (diff) | |
download | pounce-510e4e18d1ce46d8a1ae2ed5eff54304598c1529.tar.gz pounce-510e4e18d1ce46d8a1ae2ed5eff54304598c1529.zip |
Rename listen to local
Diffstat (limited to '')
-rw-r--r-- | local.c (renamed from listen.c) | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/listen.c b/local.c index 727a1e1..eccd2e6 100644 --- a/listen.c +++ b/local.c @@ -53,7 +53,7 @@ static byte *readFile(size_t *len, FILE *file) { return buf; } -void listenConfig(FILE *cert, FILE *priv) { +void localConfig(FILE *cert, FILE *priv) { tls_free(server); server = tls_server(); if (!server) errx(EX_SOFTWARE, "tls_server"); @@ -81,7 +81,7 @@ void listenConfig(FILE *cert, FILE *priv) { tls_config_free(config); } -size_t listenBind(int fds[], size_t cap, const char *host, const char *port) { +size_t localBind(int fds[], size_t cap, const char *host, const char *port) { struct addrinfo *head; struct addrinfo hints = { .ai_family = AF_UNSPEC, @@ -124,7 +124,7 @@ static void unixUnlink(void) { if (error) warn("unlinkat"); } -size_t listenUnix(int fds[], size_t cap, const char *path) { +size_t localUnix(int fds[], size_t cap, const char *path) { if (!cap) return 0; int sock = socket(PF_UNIX, SOCK_STREAM, 0); @@ -186,7 +186,7 @@ static int recvfd(int sock) { return *(int *)CMSG_DATA(cmsg); } -struct tls *listenAccept(int *fd, int bind) { +struct tls *localAccept(int *fd, int bind) { *fd = accept(bind, NULL, NULL); if (*fd < 0) err(EX_IOERR, "accept"); |