messageTCP
This commit is contained in:
parent
844ddcdc4d
commit
85d0725ff3
2 changed files with 5 additions and 3 deletions
|
@ -3,7 +3,7 @@ public class Database {
|
|||
private User myUser;
|
||||
|
||||
public void Database() {
|
||||
|
||||
Connection con=null;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -38,9 +38,11 @@ public class UserListeningThreadTCP extends Thread{
|
|||
}
|
||||
|
||||
public void accept(ServerSocket servSocket) throws IOException {
|
||||
|
||||
UserConnexionthreadTCP threadtcp= new UserConnexionthreadTCP("Chat_with_"+myUser.getPseudo(),myUser,servSocket.accept());
|
||||
Socket socket_tcp= servSocket.accept();
|
||||
UserConnexionthreadTCP threadtcp= new UserConnexionthreadTCP("Chat_with_"+myUser.getPseudo(),myUser,socket_tcp);
|
||||
threadtcp.start();
|
||||
threadtcp.interrupt();
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue