using UDP library, "void receive(byte[] data )" is not responding in eclips.

edited March 2014 in Library Questions

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.

Tagged:

Answers

  • Answer ✓

    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 )

  • edited March 2014

    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! ;)

Sign In or Register to comment.