(How) can I use ServerSocket to listen on UDP instead of TCP traffic?

My application has a module that uses ServerSocket to listen for incoming TCP connections. When I switched the client to use UDP, I expected to receive the data anyway, but I was mistaken. However, when I looked at the documentation, I could not find the configuration parameter to configure the socket for UDP. Should I use a different class?

+7
java sockets
source share
1 answer
+10
source share

All Articles