X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;ds=sidebyside;f=Usermode%2FLibraries%2Flibnet.so_src%2Finclude_exp%2Fnet.h;h=3d33da0337c7a700ed2b1d470bae068145309b48;hb=db55040ba8814edf681d4ccc12ad8955d8aa404a;hp=cd2cb6c8e646a4fe899c9b806bef22481bef8e8c;hpb=341d51ca40a4a26ed89914feaacc940c64b22197;p=tpg%2Facess2.git 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); /**