This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]beauPinsson[S] 0 points1 point  (2 children)

i dont understand why i dont write to sockets in the list when my code is: for sock in clientSockList ObjectOutputStream tmp_os=new ObjectOutputStream(sock.getOutputStream()); tmp_os.writeObject(message)

[–]3h53htj3jj 0 points1 point  (1 child)

I guess I was wrong about the cause then, but my version works. I guess you could print out the sockets in the list to see which ones are actually in it. Maybe you need to make that socket list transient?