Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | droppriv(): ability not to chroot, and to chroot in a specific directory | Laurent Ghigonis | 2012-12-02 | 2 | -4/+8 |
| | | | | WARNING: droppriv() API breakage | ||||
* | add Requirements and Sendbuf sections | Laurent Ghigonis | 2012-12-02 | 1 | -0/+13 |
| | |||||
* | use BSD queue.h on linux from libbsd | Laurent Ghigonis | 2012-12-02 | 1 | -8/+8 |
| | |||||
* | add BSD queue.h in contrib/ | Laurent Ghigonis | 2012-12-02 | 1 | -0/+568 |
| | |||||
* | prefix log_* functions by gg_ | Laurent Ghigonis | 2012-12-02 | 2 | -14/+18 |
| | |||||
* | source cleanup and utils improvements | Laurent Ghigonis | 2012-12-02 | 4 | -73/+239 |
| | | | | | | | * move utils functions to utils.c * add log functions * use an ifndef for the whole libglouglou.h for multiple inclusion * move gg_packet_props to libglougloud.c and set it as extern in libglouglou.h | ||||
* | fix sendrecv unit test by using send buffer flush functions | Laurent Ghigonis | 2012-12-02 | 1 | -5/+7 |
| | |||||
* | add functions to flush send buffers | Laurent Ghigonis | 2012-12-02 | 4 | -11/+33 |
| | |||||
* | reorganise functions order. | Laurent Ghigonis | 2012-12-02 | 2 | -30/+30 |
| | | | | | no functionnal change. TODO-- | ||||
* | use while(LIST_FIRST) as a LIST_FOREACH_SAFE ... and remove useless debug printf | Laurent Ghigonis | 2012-12-02 | 1 | -2/+2 |
| | |||||
* | fix 2 bugs. | Laurent Ghigonis | 2012-12-02 | 2 | -16/+7 |
| | | | | remove useless function. | ||||
* | add sendbuf.c to libglouglou.so build | Laurent Ghigonis | 2012-12-02 | 1 | -1/+1 |
| | |||||
* | work in progress for sendbuf support. | Laurent Ghigonis | 2012-12-02 | 4 | -127/+210 |
| | | | | now it compiles :) | ||||
* | work in progress on sendbuf | Laurent Ghigonis | 2012-12-01 | 3 | -26/+41 |
| | |||||
* | work in progress on implementing a send buffer | Laurent Ghigonis | 2012-12-01 | 4 | -1/+161 |
| | |||||
* | explictly set source and headers | Laurent Ghigonis | 2012-12-01 | 1 | -2/+2 |
| | |||||
* | handle process exit events | Laurent Ghigonis | 2012-11-30 | 2 | -1/+22 |
| | |||||
* | check pkt->type in pkt_encode() | Laurent Ghigonis | 2012-11-30 | 1 | -0/+2 |
| | |||||
* | work on encoding / decoding gg_packet | Laurent Ghigonis | 2012-11-30 | 2 | -102/+145 |
| | | | | | | | | | | | * we now do the byte order convertion in libglouglou when *_send(pkt) is called * fix encoding and decoding: byte order, packet len * simpler packet representation, one layer of structs only * setup a nicer solution to get packets size depending on their type * when in verbose mode, show which check failed in pkt_decode() WARNING: This breaks API ! All libglouglou users need to update their gg_packet usage | ||||
* | revert +1 for \0 idea | Laurent Ghigonis | 2012-11-30 | 1 | -2/+2 |
| | |||||
* | add comment about \0 at the end of gg_packet variable args size | Laurent Ghigonis | 2012-11-30 | 1 | -2/+2 |
| | |||||
* | variable arguments should be one byte more, to store the \0 | Laurent Ghigonis | 2012-11-30 | 1 | -2/+2 |
| | |||||
* | useless to set buf to NULL, as it's not tested after | Laurent Ghigonis | 2012-11-30 | 1 | -1/+0 |
| | |||||
* | fix indent | Laurent Ghigonis | 2012-11-30 | 1 | -2/+2 |
| | |||||
* | add error() verbose() and debug() to log stuff from libglouglou, | Laurent Ghigonis | 2012-11-30 | 2 | -21/+50 |
| | | | | | and gg_verbosity_get() and gg_verbosity_set() to change libglouglou verbosity level | ||||
* | make gg_packet static when returned by pkt_decode and handle_packet callback, | Laurent Ghigonis | 2012-11-29 | 1 | -29/+29 |
| | | | | and mention it in function comments | ||||
* | add security mention when starting server or creating a client : | Laurent Ghigonis | 2012-11-29 | 1 | -0/+2 |
| | | | | "for security, do not set handle_packet if you don't need it" | ||||
* | don't go into packet decoding if the user did not set a handle_packet callback. | Laurent Ghigonis | 2012-11-29 | 1 | -20/+22 |
| | | | | | this makes probes that runs as root less exposed if they don't register this callback. | ||||
* | use user_send() instead of directly sendto() | Laurent Ghigonis | 2012-11-29 | 1 | -3/+1 |
| | |||||
* | remove extra line | Laurent Ghigonis | 2012-11-29 | 1 | -1/+0 |
| | |||||
* | use EVLOOP_NONBLOCK in event_base_loop(), as we now deal with timers in | Laurent Ghigonis | 2012-11-29 | 2 | -4/+6 |
| | | | | gg_client so we need more event cycles than EVLOOP_ONCE. | ||||
* | many improvements, mainly on gg_client | Laurent Ghigonis | 2012-11-29 | 2 | -62/+162 |
| | | | | | | | | * when client or server disconnects, correctly inform the other party * add a reconnect mechanism for gg_client() based on timers * clean function headers * improve *_send() code * client now ignores packets from someone else than it's server | ||||
* | basic process event message handling | Laurent Ghigonis | 2012-11-29 | 2 | -12/+67 |
| | |||||
* | remove TODO, in README.txt now | Laurent Ghigonis | 2012-11-29 | 1 | -2/+0 |
| | |||||
* | set default ports as constants, and use them in sendrecv unittest | Laurent Ghigonis | 2012-11-29 | 2 | -2/+7 |
| | |||||
* | move around functions so they are in the right order. | Laurent Ghigonis | 2012-11-29 | 1 | -111/+115 |
| | | | | no functionnal change | ||||
* | auto calculate the packet size in gg_*_send() | Laurent Ghigonis | 2012-11-29 | 3 | -6/+41 |
| | |||||
* | include event.h here, and also the default queue.h of the system instead of the | Laurent Ghigonis | 2012-11-29 | 1 | -1/+7 |
| | | | | shipped one for now | ||||
* | add a way to pass userdata to server and client callbacks | Laurent Ghigonis | 2012-11-29 | 4 | -8/+16 |
| | |||||
* | fix callback function definition | Laurent Ghigonis | 2012-11-29 | 1 | -1/+1 |
| | |||||
* | add missing func header | Laurent Ghigonis | 2012-11-29 | 1 | -3/+3 |
| | |||||
* | also test user id | Laurent Ghigonis | 2012-11-29 | 1 | -1/+2 |
| | |||||
* | sending and receiving packets implemented and tested in unittest | Laurent Ghigonis | 2012-11-29 | 3 | -22/+127 |
| | |||||
* | add a unittest for testing sending are receiving pkts | Laurent Ghigonis | 2012-11-29 | 1 | -0/+51 |
| | |||||
* | improve connection handling between server and client. | Laurent Ghigonis | 2012-11-29 | 3 | -29/+111 |
| | | | | | better API. skeletion for packet_decode() | ||||
* | fix error handling in "make run_loop | Laurent Ghigonis | 2012-11-29 | 1 | -1/+1 |
| | |||||
* | fix Makefile for automatic compilation of new unittests | Laurent Ghigonis | 2012-11-29 | 1 | -8/+5 |
| | |||||
* | correctly handle new users | Laurent Ghigonis | 2012-11-29 | 2 | -12/+75 |
| | |||||
* | better naming | Laurent Ghigonis | 2012-11-29 | 1 | -1/+1 |
| | |||||
* | add a "make run_loop" target to execute the unit tests 20 times | Laurent Ghigonis | 2012-11-29 | 1 | -0/+18 |
| |