Hey guys,
I am trying to build a peer to peer network(structu red) where a central server has a repository of the list of available file names for sharing.When a new node joins the n/w,he updates the server with the list of file names he has got and the port number he is listening to.
How do i send the information to server using 'send'?
do i iteratively use send to send the port number first,then each file name and so on or is there a way to send the entire structure at one go to server?
I am trying to build a peer to peer network(structu red) where a central server has a repository of the list of available file names for sharing.When a new node joins the n/w,he updates the server with the list of file names he has got and the port number he is listening to.
How do i send the information to server using 'send'?
do i iteratively use send to send the port number first,then each file name and so on or is there a way to send the entire structure at one go to server?
Comment