aboutsummaryrefslogtreecommitdiffstats
path: root/libglouglou (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* formating fixLaurent Ghigonis2012-11-291-1/+0
|
* implement callbacks when server receives a connect, and test it in unit testLaurent Ghigonis2012-11-293-18/+46
|
* fix errors count in unit tests runLaurent Ghigonis2012-11-291-0/+1
|
* improve unit testLaurent Ghigonis2012-11-291-2/+9
|
* correctly set LD_LIBRARY_PATH to use libglouglou from parent dirLaurent Ghigonis2012-11-291-1/+1
|
* compile the sources before running unit testsLaurent Ghigonis2012-11-291-1/+1
|
* improve "make run" tests outputLaurent Ghigonis2012-11-291-2/+7
|
* add a way to run all the tests and document it in tests/README.txtLaurent Ghigonis2012-11-292-0/+17
|
* add first unit testsLaurent Ghigonis2012-11-292-0/+30
|
* fix function nameLaurent Ghigonis2012-11-291-1/+1
|
* implement client connectionLaurent Ghigonis2012-11-292-14/+73
| | | | fix includes
* fix make installLaurent Ghigonis2012-11-291-2/+2
|
* coded gg_server_start()Laurent Ghigonis2012-11-282-23/+127
|
* add skeleton from ARCHITECTURE.txtLaurent Ghigonis2012-11-262-1/+61
|
* one file for all will be enough for nowLaurent Ghigonis2012-11-121-0/+0
|
* correct includes and fix CFLAGSLaurent Ghigonis2012-11-122-4/+7
|
* compilation basicsLaurent Ghigonis2012-11-122-4/+29
|
* libglouglou in READMELaurent Ghigonis2012-07-211-0/+1
|