Tools/NetTest - Add a runner to test networking stack
[tpg/acess2.git] / Tools / NetTest_Runner / include / net.h
1 /*
2  * net.h
3  * - Network interface IO
4  */
5 #ifndef _NET_H_
6 #define _NET_H_
7
8 #include <stddef.h>
9 #include <stdbool.h>
10
11 #define MTU     1520
12
13 extern int      Net_Open(int IfNum, const char *Path);
14 extern void     Net_Close(int IfNum);
15
16
17 extern size_t   Net_Receive(int IfNum, size_t MaxLen, void *DestBuf, unsigned int Timeout);
18 extern void     Net_Send(int IfNum, size_t Length, const void *Buf);
19
20 #endif
21

UCC git Repository :: git.ucc.asn.au