Eathernet2 EathernetUdp2 compile errors

I had tryed that above the void Setup but that did not seam to help.

you said that Udp.send() errors would be next. and you said is not valid, is this now Udp.write ...? That I saw in a Udp reference some where during my research...

Arduino: 1.8.5 (Windows 10), Board: "Arduino/Genuino Uno"

Pentametric_Coms:33: error: 'EthernetUDP2' does not name a type

 EthernetUDP2 Ethernet2Udp;

 ^

C:\Users\RS\Documents\Arduino\Pentametric_Coms\Pentametric_Coms.ino: In function 'void setup()':

Pentametric_Coms:40: error: The Udp class has been renamed EthernetUdp.
As of Arduino 1.0, the Udp class in the Ethernet library has been renamed to EthernetUdp.


   Udp.begin(LocalPort);

   ^

C:\Users\RS\Documents\Arduino\Pentametric_Coms\Pentametric_Coms.ino: In function 'void ProcessUDPTraffic()':

Pentametric_Coms:64: error: The Udp class has been renamed EthernetUdp.
As of Arduino 1.0, the Udp class in the Ethernet library has been renamed to EthernetUdp.


   int nPacketSize = Udp.parsePacket();

                     ^

C:\Users\RS\Documents\Arduino\Pentametric_Coms\Pentametric_Coms.ino: In function 'void SendADCData()':

Pentametric_Coms:97: error: The Udp class has been renamed EthernetUdp.
As of Arduino 1.0, the Udp class in the Ethernet library has been renamed to EthernetUdp.


       Udp.beginPacket(DestinationAddress, DestinationPort);

       ^

exit status 1
'EthernetUDP2' does not name a type

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

UDPSendReceiveString:

Arduino: 1.8.5 (Windows 10), Board: "Arduino/Genuino Uno"

C:\Users\RS\Documents\Arduino\libraries\Ethernet2\src\Udp.cpp:35:6: error: 'UdpClass' has not been declared

 void UdpClass::begin(uint16_t port) {

      ^

C:\Users\RS\Documents\Arduino\libraries\Ethernet2\src\Udp.cpp: In function 'void begin(uint16_t)':

C:\Users\RS\Documents\Arduino\libraries\Ethernet2\src\Udp.cpp:36:3: error: '_port' was not declared in this scope

   _port = port;

   ^

C:\Users\RS\Documents\Arduino\libraries\Ethernet2\src\Udp.cpp:37:3: error: '_sock' was not declared in this scope

   _sock = 0; //TODO: should not be hardcoded

   ^

C:\Users\RS\Documents\Arduino\libraries\Ethernet2\src\Udp.cpp: At global scope:

C:\Users\RS\Documents\Arduino\libraries\Ethernet2\src\Udp.cpp:44:10: error: 'UdpClass' has not been declared

 uint16_t UdpClass::sendPacket(uint8_t * buf, uint16_t len,  uint8_t * ip, uint16_t port){

          ^

C:\Users\RS\Documents\Arduino\libraries\Ethernet2\src\Udp.cpp: In function 'uint16_t sendPacket(uint8_t*, uint16_t, uint8_t*, uint16_t)':

C:\Users\RS\Documents\Arduino\libraries\Ethernet2\src\Udp.cpp:45:17: error: '_sock' was not declared in this scope

   return sendto(_sock,(const uint8_t *)buf,len,ip,port);

                 ^

C:\Users\RS\Documents\Arduino\libraries\Ethernet2\src\Udp.cpp: At global scope:

C:\Users\RS\Documents\Arduino\libraries\Ethernet2\src\Udp.cpp:50:10: error: 'UdpClass' has not been declared

 uint16_t UdpClass::sendPacket(const char str[], uint8_t * ip, uint16_t port){

          ^

C:\Users\RS\Documents\Arduino\libraries\Ethernet2\src\Udp.cpp: In function 'uint16_t sendPacket(const char*, uint8_t*, uint16_t)':

C:\Users\RS\Documents\Arduino\libraries\Ethernet2\src\Udp.cpp:56:17: error: '_sock' was not declared in this scope

   return sendto(_sock,(const uint8_t *)str,len,ip,port);

                 ^

C:\Users\RS\Documents\Arduino\libraries\Ethernet2\src\Udp.cpp: At global scope:

C:\Users\RS\Documents\Arduino\libraries\Ethernet2\src\Udp.cpp:60:5: error: 'UdpClass' has not been declared

 int UdpClass::available() {

     ^

C:\Users\RS\Documents\Arduino\libraries\Ethernet2\src\Udp.cpp: In function 'int available()':

C:\Users\RS\Documents\Arduino\libraries\Ethernet2\src\Udp.cpp:61:10: error: 'W5500' was not declared in this scope

   return W5500.getRXReceivedSize(_sock);

          ^

C:\Users\RS\Documents\Arduino\libraries\Ethernet2\src\Udp.cpp:61:34: error: '_sock' was not declared in this scope

   return W5500.getRXReceivedSize(_sock);

                                  ^

C:\Users\RS\Documents\Arduino\libraries\Ethernet2\src\Udp.cpp: At global scope:

C:\Users\RS\Documents\Arduino\libraries\Ethernet2\src\Udp.cpp:70:5: error: 'UdpClass' has not been declared

 int UdpClass::readPacket(uint8_t * buf, uint16_t bufLen, uint8_t *ip, uint16_t *port) {

     ^

C:\Users\RS\Documents\Arduino\libraries\Ethernet2\src\Udp.cpp: In function 'int readPacket(uint8_t*, uint16_t, uint8_t*, uint16_t*)':

C:\Users\RS\Documents\Arduino\libraries\Ethernet2\src\Udp.cpp:79:10: error: '_sock' was not declared in this scope

     recv(_sock,tmpBuf,8);

          ^

C:\Users\RS\Documents\Arduino\libraries\Ethernet2\src\Udp.cpp:115:19: error: '_sock' was not declared in this scope

   return recvfrom(_sock,buf,bufLen,ip,port);

                   ^

C:\Users\RS\Documents\Arduino\libraries\Ethernet2\src\Udp.cpp: At global scope:

C:\Users\RS\Documents\Arduino\libraries\Ethernet2\src\Udp.cpp:119:5: error: 'UdpClass' has not been declared

 int UdpClass::readPacket(uint8_t * buf, uint16_t len) {

     ^

C:\Users\RS\Documents\Arduino\libraries\Ethernet2\src\Udp.cpp: In function 'int readPacket(uint8_t*, uint16_t)':

C:\Users\RS\Documents\Arduino\libraries\Ethernet2\src\Udp.cpp:122:19: error: '_sock' was not declared in this scope

   return recvfrom(_sock,buf,len,ip,port);

                   ^

C:\Users\RS\Documents\Arduino\libraries\Ethernet2\src\Udp.cpp: At global scope:

C:\Users\RS\Documents\Arduino\libraries\Ethernet2\src\Udp.cpp:125:5: error: 'UdpClass' has not been declared

 int UdpClass::readPacket(char * buf, uint16_t bufLen, uint8_t *ip, uint16_t &port) {

     ^

C:\Users\RS\Documents\Arduino\libraries\Ethernet2\src\Udp.cpp:136:1: error: 'UdpClass' does not name a type

 UdpClass EthernetUdp2;

 ^

exit status 1
Error compiling for board Arduino/Genuino Uno.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
{/Code]