2 * Copyright (c) 2017 cs8425
4 * This library is free software; you can redistribute it and/or modify it
5 * under the terms of the MIT license.
15 #include <arpa/inet.h>
16 #include <netinet/in.h>
24 struct sockaddr_in si
;
25 struct sockaddr_in recv
;
31 int udpInit(udpLink_t
* link
, const char* addr
, int port
, bool isServer
);
32 int udpRecv(udpLink_t
* link
, void* data
, size_t size
, uint32_t timeout_ms
);
33 int udpSend(udpLink_t
* link
, const void* data
, size_t size
);