aboutsummaryrefslogtreecommitdiffstats
path: root/libglouglou/libglouglou.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* indent fix, pass 2Laurent Ghigonis2013-06-051-22/+27
| | | | no functional change
* convert to tabs, and fix some indent manualyLaurent Ghigonis2013-06-051-87/+88
| | | | no functionnal change
* double GGNET_DNSNAME_MAX and GG_PKTARG_MAX to allow for longer fqdnLaurent Ghigonis2012-12-151-1/+1
|
* better packet encode / decode and size display, and colorisation of blobsLaurent Ghigonis2012-12-111-0/+6
| | | | depending on connection id.
* define constant for size factor ratio for the packet sizeLaurent Ghigonis2012-12-111-0/+1
|
* droppriv(): ability not to chroot, and to chroot in a specific directoryLaurent Ghigonis2012-12-021-1/+1
| | | | WARNING: droppriv() API breakage
* use BSD queue.h on linux from libbsdLaurent Ghigonis2012-12-021-8/+8
|
* prefix log_* functions by gg_Laurent Ghigonis2012-12-021-7/+11
|
* source cleanup and utils improvementsLaurent Ghigonis2012-12-021-16/+24
| | | | | | | * 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/+2
|
* reorganise functions order.Laurent Ghigonis2012-12-021-2/+2
| | | | | no functionnal change. TODO--
* work in progress for sendbuf support.Laurent Ghigonis2012-12-021-1/+3
| | | | now it compiles :)
* work in progress on sendbufLaurent Ghigonis2012-12-011-1/+1
|
* work in progress on implementing a send bufferLaurent Ghigonis2012-12-011-0/+1
|
* handle process exit eventsLaurent Ghigonis2012-11-301-1/+12
|
* work on encoding / decoding gg_packetLaurent Ghigonis2012-11-301-39/+52
| | | | | | | | | | | * 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
|
* fix indentLaurent Ghigonis2012-11-301-2/+2
|
* add error() verbose() and debug() to log stuff from libglouglou,Laurent Ghigonis2012-11-301-0/+4
| | | | | and gg_verbosity_get() and gg_verbosity_set() to change libglouglou verbosity level
* remove extra lineLaurent Ghigonis2012-11-291-1/+0
|
* many improvements, mainly on gg_clientLaurent Ghigonis2012-11-291-3/+11
| | | | | | | | * 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-9/+33
|
* set default ports as constants, and use them in sendrecv unittestLaurent Ghigonis2012-11-291-0/+3
|
* auto calculate the packet size in gg_*_send()Laurent Ghigonis2012-11-291-2/+2
|
* 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-291-2/+6
|
* sending and receiving packets implemented and tested in unittestLaurent Ghigonis2012-11-291-8/+14
|
* improve connection handling between server and client.Laurent Ghigonis2012-11-291-6/+10
| | | | | better API. skeletion for packet_decode()
* correctly handle new usersLaurent Ghigonis2012-11-291-0/+10
|
* implement callbacks when server receives a connect, and test it in unit testLaurent Ghigonis2012-11-291-14/+19
|
* implement client connectionLaurent Ghigonis2012-11-291-1/+9
| | | | fix includes
* coded gg_server_start()Laurent Ghigonis2012-11-281-13/+23
|
* add skeleton from ARCHITECTURE.txtLaurent Ghigonis2012-11-261-0/+13
|
* add libglouglou, for now only containing libglouglou.h, containing theLaurent Ghigonis2012-07-211-0/+50
packet structure used to communicate between client and server