Home > Back-end >  Java Nio server sends data to the Socket Io
Java Nio server sends data to the Socket Io

Time:02-27

Server using Nio implementation,
The client Socket is used to implement,
The server to accept the client sent messages and returned to the client,
The question now is, the service side is acceptable to the client message, but the server after the write data, the client can not get data,
Nio is based on the Channel buffer area to the operation of the data, Socket IO is based on the data flow operation, will not be able to communicate?
The experimental level, the code is the most simple connection
Server:
Client:

CodePudding user response:

The building Lord have the answer
  • Related