aboutsummaryrefslogtreecommitdiffstats
path: root/libglouglou (follow)
Commit message (Collapse)AuthorAgeFilesLines
* droppriv(): ability not to chroot, and to chroot in a specific directoryLaurent Ghigonis2012-12-022-4/+8
| | | | WARNING: droppriv() API breakage
* add Requirements and Sendbuf sectionsLaurent Ghigonis2012-12-021-0/+13
|
* use BSD queue.h on linux from libbsdLaurent Ghigonis2012-12-021-8/+8
|
* add BSD queue.h in contrib/Laurent Ghigonis2012-12-021-0/+568
|
* prefix log_* functions by gg_Laurent Ghigonis2012-12-022-14/+18
|
* source cleanup and utils improvementsLaurent Ghigonis2012-12-024-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 functionsLaurent Ghigonis2012-12-021-5/+7
|
* add functions to flush send buffersLaurent Ghigonis2012-12-024-11/+33
|
* reorganise functions order.Laurent Ghigonis2012-12-022-30/+30
| | | | | no functionnal change. TODO--
* use while(LIST_FIRST) as a LIST_FOREACH_SAFE ... and remove useless debug printfLaurent Ghigonis2012-12-021-2/+2
|
* fix 2 bugs.Laurent Ghigonis2012-12-022-16/+7
| | | | remove useless function.
* add sendbuf.c to libglouglou.so buildLaurent Ghigonis2012-12-021-1/+1
|
* work in progress for sendbuf support.Laurent Ghigonis2012-12-024-127/+210
| | | | now it compiles :)
* work in progress on sendbufLaurent Ghigonis2012-12-013-26/+41
|
* work in progress on implementing a send bufferLaurent Ghigonis2012-12-014-1/+161
|
* explictly set source and headersLaurent Ghigonis2012-12-011-2/+2
|
* handle process exit eventsLaurent Ghigonis2012-11-302-1/+22
|
* check pkt->type in pkt_encode()Laurent Ghigonis2012-11-301-0/+2
|
* work on encoding / decoding gg_packetLaurent Ghigonis2012-11-302-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 ideaLaurent Ghigonis2012-11-301-2/+2
|
* add comment about \0 at the end of gg_packet variable args sizeLaurent Ghigonis2012-11-301-2/+2
|
* variable arguments should be one byte more, to store the \0Laurent Ghigonis2012-11-301-2/+2
|
* useless to set buf to NULL, as it's not tested afterLaurent Ghigonis2012-11-301-1/+0
|
* fix indentLaurent Ghigonis2012-11-301-2/+2
|
* add error() verbose() and debug() to log stuff from libglouglou,Laurent Ghigonis2012-11-302-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 Ghigonis2012-11-291-29/+29
| | | | and mention it in function comments
* add security mention when starting server or creating a client :Laurent Ghigonis2012-11-291-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 Ghigonis2012-11-291-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 Ghigonis2012-11-291-3/+1
|
* remove extra lineLaurent Ghigonis2012-11-291-1/+0
|
* use EVLOOP_NONBLOCK in event_base_loop(), as we now deal with timers inLaurent Ghigonis2012-11-292-4/+6
| | | | gg_client so we need more event cycles than EVLOOP_ONCE.
* many improvements, mainly on gg_clientLaurent Ghigonis2012-11-292-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 handlingLaurent Ghigonis2012-11-292-12/+67
|
* remove TODO, in README.txt nowLaurent Ghigonis2012-11-291-2/+0
|
* set default ports as constants, and use them in sendrecv unittestLaurent Ghigonis2012-11-292-2/+7
|
* move around functions so they are in the right order.Laurent Ghigonis2012-11-291-111/+115
| | | | no functionnal change
* auto calculate the packet size in gg_*_send()Laurent Ghigonis2012-11-293-6/+41
|
* include event.h here, and also the default queue.h of the system instead of theLaurent Ghigonis2012-11-291-1/+7
| | | | shipped one for now
* add a way to pass userdata to server and client callbacksLaurent Ghigonis2012-11-294-8/+16
|
* fix callback function definitionLaurent Ghigonis2012-11-291-1/+1
|
* add missing func headerLaurent Ghigonis2012-11-291-3/+3
|
* also test user idLaurent Ghigonis2012-11-291-1/+2
|
* sending and receiving packets implemented and tested in unittestLaurent Ghigonis2012-11-293-22/+127
|
* add a unittest for testing sending are receiving pktsLaurent Ghigonis2012-11-291-0/+51
|
* improve connection handling between server and client.Laurent Ghigonis2012-11-293-29/+111
| | | | | better API. skeletion for packet_decode()
* fix error handling in "make run_loopLaurent Ghigonis2012-11-291-1/+1
|
* fix Makefile for automatic compilation of new unittestsLaurent Ghigonis2012-11-291-8/+5
|
* correctly handle new usersLaurent Ghigonis2012-11-292-12/+75
|
* better namingLaurent Ghigonis2012-11-291-1/+1
|
* add a "make run_loop" target to execute the unit tests 20 timesLaurent Ghigonis2012-11-291-0/+18
|