Transfer different chunks of data to client systems using python
<p>Well i want to transfer different chunks of data to client machine , by different i mean the data sent could be either code or a particular function , i have used basic socket program in order to transfer the content , but how do i make the client system help differentiate between these contents , i am aware of the concept of metadata, but dont know how to apply it in here . </p>

<p>Example :
This following is the basic psuedo code on how it has to work</p>

<pre><code>Server side : 
# basic socket program
&gt; conn.send(data)

Slave side:
#basic socket program
&gt; d = conn.recv(1024)
&gt; if d is code:  execute the code 
&gt; else:  store the data
</code></pre>
