peer to peer n/w

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sritejv
    New Member
    • Mar 2008
    • 9

    peer to peer n/w

    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?
  • gpraghuram
    Recognized Expert Top Contributor
    • Mar 2007
    • 1275

    #2
    Originally posted by sritejv
    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?
    You can send the whole stucture at one go .
    But while reading check whether you have received the whole structure.
    This can be done by having an elemnt which says the structure size.

    Thanks
    Raghuram

    Comment

    Working...