X-Git-Url: https://git.ucc.asn.au/?p=tpg%2Facess2.git;a=blobdiff_plain;f=Usermode%2FLibraries%2Flibnet.so_src%2Finclude_exp%2Fnet.h;fp=Usermode%2FLibraries%2Flibnet.so_src%2Finclude_exp%2Fnet.h;h=3d33da0337c7a700ed2b1d470bae068145309b48;hp=cd2cb6c8e646a4fe899c9b806bef22481bef8e8c;hb=508aa7d2f1f441ab4c9a7cc4540eb418bc2f9da7;hpb=341d51ca40a4a26ed89914feaacc940c64b22197 diff --git a/Usermode/Libraries/libnet.so_src/include_exp/net.h b/Usermode/Libraries/libnet.so_src/include_exp/net.h index cd2cb6c8..3d33da03 100644 --- a/Usermode/Libraries/libnet.so_src/include_exp/net.h +++ b/Usermode/Libraries/libnet.so_src/include_exp/net.h @@ -6,6 +6,8 @@ #ifndef __LIBNET_H_ #define __LIBNET_H_ +#include + enum { NET_ADDRTYPE_NULL = 0, NET_ADDRTYPE_IPV4 = 4, @@ -58,6 +60,8 @@ extern int Net_OpenSocket(int AddrType, const void *Addr, const char *SocketName extern int Net_OpenSocket_TCPC(int AddrType, const void *Addr, int Port); extern int Net_OpenSocket_UDP(int AddrType, const void *Addr, int RAddr, int LAddr); +extern int Net_UDP_SendTo (int FD, int Port, int AddrType, const void *Addr, size_t Length, const void *Data); +extern int Net_UDP_RecvFrom(int FD, int* Port, int* AddrType, void *Addr, size_t Length, void *Data); /**