Java socket network programming code (including server and client)
2018-05-23
2 0 0
no vote
Other
Earn points
This code is the Java & nbsp; socket network programming source code, including the server and the client, the client to send messages, the server to receive and feedback messages. First of all, I need to prepare the Java environment. I use JDK1.8. Socket folder is the original file of eclipse project, which can be directly imported into eclipse to compile and run. If you don't want to see the project file, you can directly view the code: server.java For the server code. client.java Is the client code. Run the server first, and the display "waiting for client." indicates that the startup is successful. Then run the client, and the "server" is displayed reply:I have Accepted. "Indicates that the message is sent and received from the server. At this time, look at the server, and it shows: "recv: Hello, I am Wang." it means that the message sent by the client is received.
Related Source Codes
Android AOA Android Open Accessory Development Usi
0
0
no vote
Golang AOA Android Open Accessory HID Control
0
0
no vote
PClite
0
0
no vote
GMSK Linear Receiver
0
0
no vote
The golden version of AFT that has been passed dow
0
0
no vote
No comment