Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.openwrt.org/project/libubox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-03-08usock: fix poll return code checkFelix Fietkau
errno needs to be compared against EINTR/EAGAIN instead of the return code, and only if the return code is < 0. Signed-off-by: Felix Fietkau <nbd@nbd.name>
2016-01-28usock: implement usock_inet_timeout() with RFC6555 supportFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2016-01-15usock: add usock_inet, which returns the remote addressFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2015-01-15usock: set socket flags right after creating itRafał Miłecki
Otherwise some flags like USOCK_NONBLOCK wouldn't work as expected (O_NONBLOCK affects connect behavior). Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
2015-01-15usock: add helper waiting for socket to be readyRafał Miłecki
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
2014-09-23usock: add usock_port() for convenient use of numeric portsJo-Philipp Wich
Add a new helper function usock_port() which converts the given numeric port number into a string using a private static buffer. This way a calling application can conveniently use numeric port arguments without having to convert them before: int fd = usock(USOCK_UDP, "example.org", usock_port(80)); Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2013-01-13add license headers for usockFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2011-02-07usock: remove code duplicationFelix Fietkau
2010-10-13Initial importFelix Fietkau