X
X
xAlex0072016-01-14 23:55:40
Java
xAlex007, 2016-01-14 23:55:40

How to competently design the Event and listener class in Java to “listen” to the printer?

The printer sends data to the server port (151) via the UDP protocol: paper jam, toner low ... How to correctly design the listener class in Java to listen to events on the port and the Event class to respond to these events.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
bromzh, 2016-01-15
@bromzh

It's better to make a server using NIO .
Example: www.java2s.com/Tutorial/Java/0320__Network/UDPEcho...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question