diff options
author | June McEnroe <june@causal.agency> | 2019-10-22 22:15:55 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2019-10-22 22:15:55 -0400 |
commit | 31d09e34fa1507833b98122b54bb929b956dcdd7 (patch) | |
tree | ce90e7ce561c57ae0a9c34aa3fa2f3cc7e90afc0 | |
parent | Remove pollfd from listen interface (diff) | |
download | pounce-31d09e34fa1507833b98122b54bb929b956dcdd7.tar.gz pounce-31d09e34fa1507833b98122b54bb929b956dcdd7.zip |
Rename bouncer to bounce
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | bounce.c (renamed from bouncer.c) | 2 | ||||
-rw-r--r-- | bounce.h (renamed from bouncer.h) | 2 | ||||
-rw-r--r-- | listen.c | 2 |
4 files changed, 6 insertions, 4 deletions
diff --git a/Makefile b/Makefile index c974242..80b5261 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ LDLIBS = -ltls -include config.mk -OBJS += bouncer.o +OBJS += bounce.o OBJS += listen.o all: tags linger @@ -15,7 +15,7 @@ all: tags linger linger: ${OBJS} ${CC} ${LDFLAGS} ${OBJS} ${LDLIBS} -o $@ -${OBJS}: bouncer.h +${OBJS}: bounce.h tags: *.c *.h ctags -w *.c *.h diff --git a/bouncer.c b/bounce.c index 0d1d551..b3d8b33 100644 --- a/bouncer.c +++ b/bounce.c @@ -24,7 +24,7 @@ #include <tls.h> #include <unistd.h> -#include "bouncer.h" +#include "bounce.h" static char *censor(char *arg) { char *dup = strdup(arg); diff --git a/bouncer.h b/bounce.h index 13656ad..e731ac0 100644 --- a/bouncer.h +++ b/bounce.h @@ -28,3 +28,5 @@ void listenConfig(const char *cert, const char *priv); size_t listenBind(int fds[], size_t cap, const char *host, const char *port); int listenAccept(struct tls **client, int fd); + +int serverConnect(const char *host, const char *port); diff --git a/listen.c b/listen.c index cb6b164..d758b9d 100644 --- a/listen.c +++ b/listen.c @@ -23,7 +23,7 @@ #include <tls.h> #include <unistd.h> -#include "bouncer.h" +#include "bounce.h" static struct tls *server; |