Java socket programming example (II) – basic use of UDP
•
Java
I Server code:
II Client code:
The UDP server of the above code is a single thread and can only serve one client at a time.
The above is the whole content of this article. To view more Java syntax, you can pay attention to: Thinking in JAVA Chinese manual, JDK 1.7 reference manual official English version, JDK 1.6 API JAVA Chinese reference manual, JDK 1.5 API JAVA Chinese reference manual. I also hope you can support programming tips.
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码