aboutsummaryrefslogtreecommitdiffstats
path: root/libglouglou (follow)
Commit message (Collapse)AuthorAgeFilesLines
* support for client side usage, and fix connection id handlingLaurent Ghigonis2012-12-102-15/+103
| | | | | | | | * fix missing connection id initialisation * add user data keeping for nodes and connections * add accessors for src and dst of a connection * add new connection find functions * add option to disable connection id handling
* oops, rename node_update_name() to ggnet_node_update_name()Laurent Ghigonis2012-12-041-1/+2
|
* correctly handle node names and add function node_update_name()Laurent Ghigonis2012-12-042-5/+22
|
* fix ggnet_conn_find() prototypeLaurent Ghigonis2012-12-041-1/+2
|
* add missing response field in struct ggnet_connLaurent Ghigonis2012-12-041-0/+1
|
* remove useless definesLaurent Ghigonis2012-12-041-7/+0
|
* add ifdef for the whole libggnet lib to protect against multiple inclusionsLaurent Ghigonis2012-12-041-0/+5
|
* add ggnet_conn_find()Laurent Ghigonis2012-12-041-0/+27
|
* correctly handle size on connection response in ggnet_conn_data()Laurent Ghigonis2012-12-041-0/+4
|
* fix print debug textLaurent Ghigonis2012-12-041-7/+7
|
* libbsd is for linux onlyLaurent Ghigonis2012-12-041-1/+1
|
* explanation on libggnetLaurent Ghigonis2012-12-041-1/+7
|
* add libggnet, a helper to keep track of network nodes and connectionsLaurent Ghigonis2012-12-043-2/+226
|
* useless as we use the one from libbsdLaurent Ghigonis2012-12-021-568/+0
|
* 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