클라이언트 객체 보내기

ObjectOutputStream oos = new ObjectOutputStream(m_socket.getOutputStream());
 NetworkSerialize ns1 = new NetworkSerialize(); 
ns1.name(name1);
ns1.age(age1);
oos.writeObject(ns1);
oos.flush();


서버쪽 객체 받기

 ObjectInputStream ois = new ObjectInputStream(is);
&nb...



출처(답변): masterqna 바로가기