Code Monkey home page Code Monkey logo

bcproxy's People

Contributors

lotheac avatar rhietala avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

bcproxy's Issues

having some trouble with proxying

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

add option to use nonlocal database

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.