how to write hashtables between sockets in java
<p>im trying to write hashtable  between sockets in java
but getting this error :
Error : writing aborted; java.io.NotSerializableException: java.net.Socket</p>

<p>How i can write</p>

<p><strong>EDITED :</strong></p>

<pre><code> socktmp= mainSocket.accept();
        rdr= new BufferedReader( new InputStreamReader(socktmp.getInputStream()));
        String t="";
        String name=rdr.readLine();

        //rdr.close();
        LstClient.AddClient(name, socktmp);

        objwriter = new ObjectOutputStream(socktmp.getOutputStream());
        objwriter.writeObject(LstClient.clients);
        objwriter.flush();  
        objwriter.close();
</code></pre>
