Reputation: 463
The following code produces "no suitable constructor found" error. I am unable to figure out a reason.
try {
Sock = new DatagramSocket();
InetAddress IP_add=InetAddress.getByName("192.168.1.2");
DatagramPacket PACKET=new DatagramPacket(buf,buf.length,IP_add,2000);
} catch (Exception e) {}
Upvotes: 0
Views: 674
Reputation: 5399
There are e few options
byte []
Recheck it, I think the first point will help you.
Upvotes: 2