Transfer ArrayList over TcpSocket

Diesel

Well-known member
Joined
Aug 18, 2003
Messages
662
What is the most efficient way to send a (big) arraylist over a Tcp Connection?
 
My first thought was binary serialization. I was actually looking for a method as in...

1. Send code xxx telling the client that it will be receiving an arraylist of size n
2. Set up client to receive arraylist
3. Send arraylist
4. Send check digit

Why would it matter what the content of the ArrayList is?
 
Back
Top