Home > Back-end >  Java chat room program bug
Java chat room program bug

Time:09-19

Why I'm yao Ming set up before running the client information class name, assign a value to it, but the client after the operation to understand the service side, but didn't get the name server?

CodePudding user response:

Print server there is null

CodePudding user response:

Code line 32 print is null, because your m object is new, not out of the flow

CodePudding user response:

Can refer to: https://blog.csdn.net/x2570799116/article/details/77583595
This article, the use of the Socket and flow of people to chat

CodePudding user response:

refer to the second floor night white song reply:
code line 32 print is null, because your m object is new, not out of the flow of


Oh oh, yes, I thought that the return can be instantiated on the return of a the value of the object, but in fact you can't, but how can I get the flow, my flow is sending a message,

CodePudding user response:

reference 5 floor leek dumplings response: 89759
Quote: refer to the second floor night white song reply:

Code line 32 print is null, because your m object is new, not out of the flow of


... oh, yes, I think they can return the return on an instantiated object of value, but in fact you can't, but how can I get the flow, my flow is sending a message,


Need the server instance information sent to the client, the client accepted back into information, the process and write file to read,
  • Related