'import hypermedia.net.*; ’ library
import hypermedia.net.*;
UDP udp;
void setup() {
size(300,300);
udp = new UDP( this, 12001 );
udp.listen( true );
String message = "test";
String ip = "92.168.0.189";
int port = 11999;
udp.send( message, ip, port ); // Did you succeed? failed?
}
Can you tell if ‘udp.send’ is successful?
‘udp.send()’ comes in boolean form. Even if I turn off the internet and work ‘udp.send()’, only ‘true’ value is displayed.
- Is there a way to check if the Internet is live in real time?
- Or is ‘udp.send()’ successful? is it a failure? Can you judge?