X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=TD2%2Fserver%2FBroadcastoThreadService.java;h=4c7281307fb3742d980cdeca342549f249511268;hb=3d59b440efb79d37563fe45a6cb6a9b36c201158;hp=e8a3622a2d53a7396a8877b22b6830dc7769b661;hpb=8c3c3f613303ed9670d122cf1aa6f1fc89e8223b;p=TD_SR.git diff --git a/TD2/server/BroadcastoThreadService.java b/TD2/server/BroadcastoThreadService.java index e8a3622..4c72813 100644 --- a/TD2/server/BroadcastoThreadService.java +++ b/TD2/server/BroadcastoThreadService.java @@ -38,6 +38,13 @@ public class BroadcastoThreadService implements Runnable { } } + /** + * Be careful, this function must be thread-safe + * @param clientSocket [description] + * @param sharedList [description] + * @throws IOException [description] + * @throws ClassNotFoundException [description] + */ public void doService(Socket clientSocket, ArrayList sharedList) throws IOException, ClassNotFoundException { ObjectInputStream OReader = new ObjectInputStream(clientSocket.getInputStream()); ObjectOutputStream OWriter = new ObjectOutputStream(clientSocket.getOutputStream());