aboutsummaryrefslogtreecommitdiffstats
path: root/libglouglou/libglouglou.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* indent fix, pass 2Laurent Ghigonis2013-06-051-17/+17
| | | | no functional change
* convert to tabs, and fix some indent manualyLaurent Ghigonis2013-06-051-471/+474
| | | | no functionnal change
* fix packet PACKET_NAME len decodingLaurent Ghigonis2012-12-151-1/+1
|
* fix connection ID decodingLaurent Ghigonis2012-12-121-3/+3
|
* correctly decode packet sizeLaurent Ghigonis2012-12-111-2/+2
|
* source cleanup and utils improvementsLaurent Ghigonis2012-12-021-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 buffersLaurent Ghigonis2012-12-021-0/+18
|
* reorganise functions order.Laurent Ghigonis2012-12-021-28/+28
| | | | | 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-021-15/+1
| | | | remove useless function.
* work in progress for sendbuf support.Laurent Ghigonis2012-12-021-69/+137
| | | | now it compiles :)
* work in progress on sendbufLaurent Ghigonis2012-12-011-19/+26
|
* work in progress on implementing a send bufferLaurent Ghigonis2012-12-011-1/+22
|
* handle process exit eventsLaurent Ghigonis2012-11-301-0/+10
|
* check pkt->type in pkt_encode()Laurent Ghigonis2012-11-301-0/+2
|
* work on encoding / decoding gg_packetLaurent Ghigonis2012-11-301-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 afterLaurent Ghigonis2012-11-301-1/+0
|
* add error() verbose() and debug() to log stuff from libglouglou,Laurent Ghigonis2012-11-301-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 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
|
* many improvements, mainly on gg_clientLaurent Ghigonis2012-11-291-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 handlingLaurent Ghigonis2012-11-291-3/+34
|
* remove TODO, in README.txt nowLaurent Ghigonis2012-11-291-2/+0
|
* 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-291-2/+37
|
* add a way to pass userdata to server and client callbacksLaurent Ghigonis2012-11-291-2/+6
|
* add missing func headerLaurent Ghigonis2012-11-291-3/+3
|
* sending and receiving packets implemented and tested in unittestLaurent Ghigonis2012-11-291-12/+101
|
* improve connection handling between server and client.Laurent Ghigonis2012-11-291-13/+82
| | | | | better API. skeletion for packet_decode()
* correctly handle new usersLaurent Ghigonis2012-11-291-12/+65
|
* implement callbacks when server receives a connect, and test it in unit testLaurent Ghigonis2012-11-291-0/+9
|
* fix function nameLaurent Ghigonis2012-11-291-1/+1
|
* implement client connectionLaurent Ghigonis2012-11-291-13/+64
| | | | fix includes
* coded gg_server_start()Laurent Ghigonis2012-11-281-10/+104
|
* add skeleton from ARCHITECTURE.txtLaurent Ghigonis2012-11-261-1/+48
|
* one file for all will be enough for nowLaurent Ghigonis2012-11-121-0/+15