lotheac / bcproxy Goto Github PK
View Code? Open in Web Editor NEWBatClient proxy; moved to https://git.sr.ht/~lotheac/bcproxy
License: ISC License
BatClient proxy; moved to https://git.sr.ht/~lotheac/bcproxy
License: ISC License
Finally managed to compile it on the linux system, coupla warnings during. Im running psql elsewhere so i did hadd the host/port/user/pass optionts to the postgres.c file, but that doesn't seem to issue complaints. I can start the bcproxy but looks like its missing the address to proxy to ( ie batmud).
Im adding some copypaste log from the whole thing:
(venv) glauri@lucid:~/bcproxy$ ./configure
checking for asprintf: yes
checking for getprogname: no
checking for strlcpy: no
checking for libtls: no
(venv) glauri@lucid:~/bcproxy$ bmake obj && bmake
making /home/glauri/bcproxy/obj
cc -O2 -Wno-error -I/usr/include/postgresql -c /home/glauri/bcproxy/bcproxy.c
cc -O2 -Wno-error -I/usr/include/postgresql -c /home/glauri/bcproxy/buffer.c
cc -O2 -Wno-error -I/usr/include/postgresql -c /home/glauri/bcproxy/client_parser.c
cc -O2 -Wno-error -I/usr/include/postgresql -c /home/glauri/bcproxy/db.c
cc -O2 -Wno-error -I/usr/include/postgresql -c /home/glauri/bcproxy/net.c
cc -O2 -Wno-error -I/usr/include/postgresql -c /home/glauri/bcproxy/parser.c
cc -O2 -Wno-error -I/usr/include/postgresql -c /home/glauri/bcproxy/postgres.c
cc -O2 -Wno-error -I/usr/include/postgresql -c /home/glauri/bcproxy/proxy.c
/home/glauri/bcproxy/proxy.c: In function ‘on_close’:
/home/glauri/bcproxy/proxy.c:176:7: warning: implicit declaration of function ‘asprintf’; did you mean ‘vsprintf’? [-Wimplicit-function-declaration]
if (asprintf(&out, MARKER "hp %d %d %d\n", hp, sp, ep) == -1) {
^~~~~~~~
vsprintf
cc -O2 -Wno-error -I/usr/include/postgresql -c /home/glauri/bcproxy/room.c
cc -O2 -Wno-error -I/usr/include/postgresql -c /home/glauri/bcproxy/color.c
/home/glauri/bcproxy/color.c: In function ‘colorstr_alloc’:
/home/glauri/bcproxy/color.c:9:6: warning: implicit declaration of function ‘asprintf’; did you mean ‘vsprintf’? [-Wimplicit-function-declaration]
if (asprintf(&out, "\x1b[%u;2;%hhu;%hhu;%hhum",
^~~~~~~~
vsprintf
cc -O2 -Wno-error -I/usr/include/postgresql -c /home/glauri/bcproxy/strlcpy.c
cc -O2 -Wno-error -I/usr/include/postgresql -c /home/glauri/bcproxy/faketls.c
cc -o bcproxy bcproxy.o buffer.o client_parser.o db.o net.o parser.o postgres.o proxy.o room.o color.o strlcpy.o faketls.o -lpq
(venv) glauri@lucid:~/bcproxy$ ./obj/bcproxy 6666
bindall: binding to ::1,6666: success
Hello,
would be nice to have an easily configurable option to use nonlocal database. ( At my shell machine the admins are too lazy to install psql, going to use a db from heroku or something).
need to give host, user, pass probably.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.