We are about to switch to a new forum software. Until then we have removed the registration on this forum.
In processing IDE 2.1 my UPD code is receiving data perfectly. i have exported this in eclips. Everything is fine, but "void receive(byte[] data )/ void receive( byte[] data, String ipAdd, int port )" function is not responding. using udp(log) i can see that data is coming and there is no error.
Answers
Solved it.
In eclipse, we have to use access specifier (public) before this function.
public void receive(byte[] data ) public void receive( byte[] data, String ipAdd, int port )
interesting...
Processing's IDE uses a pre-processor in order to get a compliant Java code.
One of the curious things it does is place
public
anywhere an access isn't specified! ;)