Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Richard Torres   on Jun 08 In Java Category.

  
Question Answered By: Jenny Lopez   on Jun 08

Socket echoSocket = new
Socket("my_machine_name",3000);
FileOutputStream fout = new
FileOutputStream("name.out");
// ObjectInputStream ois = new
ObjectInputStream(fout);

ObjectOutputStream dat = new
ObjectOutputStream(fis);
dat.writeObject(echoSocket);

The socket  will be serialized and written into a file
named name.out.

Share: 

 

This Question has 4 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Serialize a Socket Object Or get search suggestion and latest updates.


Tagged: