@@ -0,0 +1,730 @@
+package ru.nsu.ccfit.bogush;%0A%0Aimport ru.nsu.ccfit.bogush.msg.Message;%0A%0Aimport java.io.IOException;%0Aimport java.io.ObjectInputStream;%0Aimport java.io.ObjectOutputStream;%0Aimport java.net.Socket;%0A%0Apublic class SocketMessageStream implements MessageSender, MessageReceiver %7B%0A%09private ObjectInputStream in;%0A%09private ObjectOutputStream out;%0A%0A%09public SocketMessageStream(Socket socket) throws IOException %7B%0A%09%09in = new ObjectInputStream(socket.getInputStream());%0A%09%09out = new ObjectOutputStream(socket.getOutputStream());%0A%09%7D%0A%0A%09public void sendMessage(Message message) throws IOException %7B%0A%09%09out.writeObject(message);%0A%09%7D%0A%0A%09public Message receiveMessage() throws IOException, ClassNotFoundException %7B%0A%09%09return (Message) in.readObject();%0A%09%7D%0A%7D%0A

Implement socket message stream