bosko lekovic
/
ETHtoCOM_10
nova verzija tcp+udp->serial com
Diff: EthernetSetup.h
- Revision:
- 4:7abcf4543282
- Parent:
- 2:45b351b4fc2a
diff -r 1196befeace0 -r 7abcf4543282 EthernetSetup.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/EthernetSetup.h Sat Apr 11 17:11:38 2020 +0000 @@ -0,0 +1,35 @@ +#ifndef ETHERNETSETUP_H +#define ETHERNETSETUP_H + +#include "EthernetInterface.h" +#include "clubbing.h" + + +struct S_EthernetAddress +{ + char ip[16]; + char mask[16]; + char gate[16]; + // int port; +}; + +struct S_EthernetAddress_Remote +{ + char ip[16]; + int port; +}; + + + +struct S_net +{ + struct S_EthernetAddress *ps_ea; + EthernetInterface *p_eth; +}; + + +EthernetInterface * ethernet_setup( void ); + + + +#endif \ No newline at end of file