summaryrefslogtreecommitdiff
path: root/lib/udp.c
Commit message (Collapse)AuthorAgeFilesLines
* WIP commit moving towards working server support.Linus Nordberg2013-05-151-21/+28
|
* Revamping for listeners.Linus Nordberg2013-03-011-1/+1
| | | | | | | | | | | | | | Split rs_connection into rs_baseconn plus rs_connection and rs_listener. Connections now has a state variable. Connect buffer event and fd of _source_ connection, not that of conn->active_peer. The connection object referred to by a peer is not meant for using as a connection, only for reporting errors on. Make sure things are sane even when not using a config file. Bump library interface version to 1.0.0 since it's changed.
* WIP commit for listener support.Linus Nordberg2013-02-191-12/+17
|
* Rename most 'package' to 'message'.Linus Nordberg2013-01-241-44/+44
| | | | | | | | | | | | | RADIUS (RFC2865) is defined to be transported over UDP so the term "radius packet" makes a lot of sense. RADIUS/TCP (RFC6613) and RADIUS/TLS (RFC6614), a.k.a. RadSec, use stream transport protocols though. The term "message" doesn't imply any kind of transport -- a message can be sent using datagrams as well as in a stream. This (large) commit changes 'package' to 'message' where it makes sense. It does not touch the 'radius' subdirectory. It includes preprocessor directives (#define) to make the public interface compatible with previous releases of the library.
* Rename COPYING -> LICENSE.Linus Nordberg2012-12-191-1/+1
| | | | And distribute LICENSE and HACKING.
* port to new RADIUS client libraryLuke Howard2011-11-141-15/+14
|
* Avoid potential double free.Linus Nordberg2011-03-141-1/+4
| | | | (udp_init): Set conn.rev = NULL in fault case.
* [UDP] Don't crash on second packet.Linus Nordberg2011-03-101-1/+2
| | | | | | [UDP] Set the user_data member for the write callback in rs_packet_send() -- the one from udp_init() doesn't do much good at this point.
* Get UDP working.Linus Nordberg2011-03-091-30/+84
| | | | | | | | | | | | | | | | For UDP, activate retransmit timer before receiving rather than sending makes the event loop break nicely after sending a message (which is important for blocking mode). Not quite sure that this is really accurate wrt to retransmission timing though but it should do for now. For UDP, set the user_data member for the read callback in rs_conn_receive_packet -- the one from udp_init() doesn't do much good now. For UDP, implement receiving message. Add compat_recv().
* Add retransmission timer support (UDP).Linus Nordberg2011-03-091-0/+15
|
* Don't make UDP write event persistant.Linus Nordberg2011-03-091-22/+46
| | | | | rs_packet_send() adds the event again when there's a packet to send and the write callback does the same if it doesn't drain the queue.
* Restructure code, moving most code out of packet.cLinus Nordberg2011-03-061-0/+85
Also, move copyright notice out of COPYING and into every file.