summaryrefslogtreecommitdiff
path: root/lib/send.c
Commit message (Collapse)AuthorAgeFilesLines
* WIP commit for listener support.Linus Nordberg2013-02-191-18/+20
|
* Rename most 'package' to 'message'.Linus Nordberg2013-01-241-19/+19
| | | | | | | | | | | | | 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 rs_packet_flags members.Linus Nordberg2013-01-241-2/+2
| | | | | | | | | Uppercase to make them appear as the constants they are, as opposed to variables. Remove 'flag' suffix, typically used for variables. Spell out HEADER.
* Rename COPYING -> LICENSE.Linus Nordberg2012-12-191-1/+1
| | | | And distribute LICENSE and HACKING.
* [UDP] Don't crash on second packet.Linus Nordberg2011-03-101-0/+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.
* Add retransmission timer support (UDP).Linus Nordberg2011-03-091-0/+4
|
* Timeout implemented in request objects, supported by TCP.Linus Nordberg2011-03-081-6/+0
| | | | TODO: UDP.
* Don't return -1 to user but rather an error code.Linus Nordberg2011-03-081-1/+4
| | | | NOTE: Changes rs_conn_receive_packet() and rs_packet_send() only.
* Move verification of response packets up to a level where it makes sense.Linus Nordberg2011-03-071-5/+12
| | | | | | | | | | | | | | | | | | | | | Replace the user_dispatch_flag on connections with conn_user_dispatch_p(). Remove the 'original' member from packet and instead have an upper layer verify. Rename packet valid_flag --> received_flag to reflect that we don't verify. Move _close_conn() --> conn_close(). Move packet flags into a single unsigned int, for portability. (_read_packet): Don't verify packet. (rs_conn_receive_packet): Don't touch PKT_OUT if there isn't a packet. (rs_conn_receive_packet): Verify packet using packet_verify_response().
* Formatting changes.Linus Nordberg2011-03-071-1/+1
|
* Restructure code, moving most code out of packet.cLinus Nordberg2011-03-061-0/+128
Also, move copyright notice out of COPYING and into every file.