I have implemented, for study, an Echo server with UDP and datagrams but
I have a terminology doubt.
If to send a DatagramPacket I must connect to a server listen on a port ...
I have a problem that I see for the first time ever, I'm using java DatagramSocket (s) for sending and receiving data in my app.
this is how I send the data:
This came up while answering BufferedWriter only works the first time
As far as I understand the Java Doc (and this is confirmed by many posts on the net) a DatagramPacket ...
I am new to this. I need to use the input from the console to make some programming decisions. Next I want to append some values to this console input. Finally, I want to turn it into a bytestream and make it part of the SendData in a UDP DatagramPacket. Below is my code to tokenize the console input. It compiles, ...
I am working on an application that communicates with a piece of software (image processing) that only provides UDP. Hence I am using Datagrams. Here's my simple question. For DatagramSocket.send(DatagramPacket), what happens to the information if the application on the other end of this message is not calling DatagramSocket.receive(DatagramPacket)? I ask because I do not want to use every packet sent ...