Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | fix packet PACKET_NAME len decoding | Laurent Ghigonis | 2012-12-15 | 1 | -1/+1 |
| | |||||
* | fix connection ID decoding | Laurent Ghigonis | 2012-12-12 | 1 | -3/+3 |
| | |||||
* | correctly decode packet size | Laurent Ghigonis | 2012-12-11 | 1 | -2/+2 |
| | |||||
* | source cleanup and utils improvements | Laurent Ghigonis | 2012-12-02 | 1 | -56/+18 |
| | | | | | | | * 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 | ||||
* | add functions to flush send buffers | Laurent Ghigonis | 2012-12-02 | 1 | -0/+18 |
| | |||||
* | reorganise functions order. | Laurent Ghigonis | 2012-12-02 | 1 | -28/+28 |
| | | | | | 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 | 1 | -15/+1 |
| | | | | remove useless function. | ||||
* | work in progress for sendbuf support. | Laurent Ghigonis | 2012-12-02 | 1 | -69/+137 |
| | | | | now it compiles :) | ||||
* | work in progress on sendbuf | Laurent Ghigonis | 2012-12-01 | 1 | -19/+26 |
| | |||||
* | work in progress on implementing a send buffer | Laurent Ghigonis | 2012-12-01 | 1 | -1/+22 |
| | |||||
* | handle process exit events | Laurent Ghigonis | 2012-11-30 | 1 | -0/+10 |
| | |||||
* | 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 | 1 | -63/+93 |
| | | | | | | | | | | | * 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 | ||||
* | useless to set buf to NULL, as it's not tested after | Laurent Ghigonis | 2012-11-30 | 1 | -1/+0 |
| | |||||
* | add error() verbose() and debug() to log stuff from libglouglou, | Laurent Ghigonis | 2012-11-30 | 1 | -21/+46 |
| | | | | | 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 |
| | |||||
* | many improvements, mainly on gg_client | Laurent Ghigonis | 2012-11-29 | 1 | -59/+151 |
| | | | | | | | | * 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 | 1 | -3/+34 |
| | |||||
* | remove TODO, in README.txt now | Laurent Ghigonis | 2012-11-29 | 1 | -2/+0 |
| | |||||
* | 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 | 1 | -2/+37 |
| | |||||
* | add a way to pass userdata to server and client callbacks | Laurent Ghigonis | 2012-11-29 | 1 | -2/+6 |
| | |||||
* | add missing func header | Laurent Ghigonis | 2012-11-29 | 1 | -3/+3 |
| | |||||
* | sending and receiving packets implemented and tested in unittest | Laurent Ghigonis | 2012-11-29 | 1 | -12/+101 |
| | |||||
* | improve connection handling between server and client. | Laurent Ghigonis | 2012-11-29 | 1 | -13/+82 |
| | | | | | better API. skeletion for packet_decode() | ||||
* | correctly handle new users | Laurent Ghigonis | 2012-11-29 | 1 | -12/+65 |
| | |||||
* | implement callbacks when server receives a connect, and test it in unit test | Laurent Ghigonis | 2012-11-29 | 1 | -0/+9 |
| | |||||
* | fix function name | Laurent Ghigonis | 2012-11-29 | 1 | -1/+1 |
| | |||||
* | implement client connection | Laurent Ghigonis | 2012-11-29 | 1 | -13/+64 |
| | | | | fix includes | ||||
* | coded gg_server_start() | Laurent Ghigonis | 2012-11-28 | 1 | -10/+104 |
| | |||||
* | add skeleton from ARCHITECTURE.txt | Laurent Ghigonis | 2012-11-26 | 1 | -1/+48 |
| | |||||
* | one file for all will be enough for now | Laurent Ghigonis | 2012-11-12 | 1 | -0/+15 |