add init and deinit generic function for the peer structure
They are defined as global variable initialized as:peer_deinit = peer_deinit_data;peer_init = peer_init_data;
Refactor peer structure
peer.h now exports two metadata pointers to upper layers, one forgossiping data and the other for ancillary, user-defined data.
Remove static sender nodeID from signalling module
This allows sending signalling traffic from different originators (nodeIDs)
remove static global sending nodeID variable from signaling module
remove cb_size and capacity attribute from peer structadd a void pointer to metadata
general bug fixings
- add destroy function to peersamplers, so to avoid memory leaks in case of multiple instances- fix initialization bug in the chunk_buffer constructor- fix peerset_clear reallocation for the case size is set to 0 (destruction)
Fix some warnings
Merge branch 'baldesi-next'
Conflicts: src/Chunkiser/Makefile src/Chunkiser/input-stream-avf.c src/Chunkiser/input-stream.c src/Chunkiser/output-stream-avf.c src/Chunkiser/output-stream-play.c src/Makefile src/PeerSampler/ncast.c
Merge branch 'baldesi'
Conflicts: include/peer.h src/Cache/topo_proto.c src/Cache/topocache.c src/Cache/topocache.h src/ChunkTrading/chunk_delivery.c src/Chunkiser/Makefile src/Chunkiser/input-stream-avf.c src/Chunkiser/libav-compat.h src/Chunkiser/output-stream-avf.c...
fix warning alert on peerset_for_eachfix peers comparison crash bugfix nodeid comparison crash bug
fix compilation warning and suppress fprintf
export configuration structure files.
configuration tool has changed its name into grapes_config and it's now available as a public interface of the GRAPES library
add peerset destroy and for each peerset functions
add peerset_push and peerset_pop function
interface refactoring introducing const
chunk: header size is used externally for malloc, declare in .h
moving int_coding.h to public headers
required by some topology modiles, to be evaluated upstream
adding subnet to peer structure
required tempororarly by some traverso branches, no need to merge upstream
scheduler: move selectWithOrdering to the public header
Merge branch 'scheduler' into next
Eliminite some compiler warning messages
git-svn-id: https://repository.napa-wine.eu/svn/napawine-software/branches/winestreamer-1.0-rc/THIRDPARTY-LIBS/GRAPES@2607 c54fac2e-1815-407e-9b96-088d06743913
adding capacity to struct peer
Merge remote-tracking branch 'origin/cloudcast_integration'
Conflicts: src/Tests/cloudcast_topology_test.c src/net_helper-ml.c
Merge branch 'fixes'
Fix a warning by properly defining "const" in peersampler interface
Merge commit '9c3d2b9e5be53fbc11f150a54386cf92c2ba5d10'
Merge branch '2011-COMMAG2' into next
Merge branch 'master' into next
Merge branch 'cloudcast_integration'
Merge branch 'fixes' into cloudcast_integration
Conflicts: include/net_helper.h src/net_helper.c
Fixed thread unsafe operations in net_helper
Added support for get_from_cloud_default which return a default value if key is not present
Removed pthread dependency by cloud_helper. Caller must enforce synchronization on cloud_helper_init
cloud_helper_context-nodeID map now thread safe
better specified the completion criteria of recv_form_cloud
Merge branch 'master' into cloudcast
Conflicts: src/Cache/proto.h src/Cache/topocache.c src/Makefile src/Tests/Makefile src/TopologyManager/Makefile src/TopologyManager/topo_proto.h
Added optional buffer deallocation for cloud_helper get/put operations
Fix peer allocation in peerset
A realloc due to add_peer() could invalidate a previously returnedpointer to peer
Some more doxy
Mention some more examples
Fix net_helper.h doxy
Some more doxy documentation in chunkidset.h
Document some defines
Fix c&p error
Add a link to chunk_sending_test.c
Add a link to chunk_encoding_test.c
Add a link to chunkiser_test.c
Add a link to chunkidset_test.c
Add a link to cb_test.c
Fix the chunkiser documentation
Merge commit '6b94c6031fc0d6924793d25e193c28802f351e91' into documentation
Document the "config" parameter a little bit
This still has to be improved
Merge branch 'chunk-attribs' into test-local
Merge branch 'chunkiser' into test-local
add chunkiser chunk attribute support
Merge branch 'bsearch' into test-local
net_helper: add nodeid_cmp function
Fix outdated doc for chunk_write.
Removed the no-more-existing "data" and "size" parameters' description,and changed "chunk_id" to "c" as the second parameter.
Fixed a typo in the documentation header and added licence
Merge branch 'sched-peer' into next
schedule based on peer* instead of noedID*
avoid some lookups
Merge branch 'transactions' into next
add parseChunkMsg call (with transaction ID)
make the trade_msg_ha interface symmetric, thus allowing transaction IDs
add ACK message
changing transaction IDs to uint16
Cleaned files of trailing whitepaces and empty lines
Modified cloud_helper interface to support cloud node variants and timestamps.Updated cloud_test and test cloud implementation to conform to the new interface
fix: no need for winsock in net-helper.h, sys/time is enough
Merge branch 'chunkiser'
Add a "get_fds()" method to the chunkiser (useful for RTP input)
Implement the dechunkiser "close" method
Change the dechunkiser API to accept a file name (and not only a config string) in open()
Added function is_cloud_node to cloud helper
Merge branch 'topman'
Use a better interface for chunk_write(), too
Use a new interface for chunkise()
Some const fixes in the peersamplers
Added ability to specify an header for cloud GET operations
Cloud communication support introduced throught cloud_helper
First draft of a chunkiser infrastructure
Update the context name
Merge branch 'cloudcast' into topman
include/topmanager.h src/Tests/tman_test.c src/Tests/topology.c src/Tests/topology_test.c src/Tests/topology_test_attr.c src/TopologyManager/peersampler.c
Peersampler contexts now have type peersampler_context. Context as return value of *init
Removed CamelCase names
Added context support to peersampler.c
Merge remote branch 'origin/fixes'
Fix net_helper.h for win32
Rename topman.h into peersample.h
prepare for multiple topology manager implementations
net_helper : adding node_ip function
Merge branch 'cbsize-in-signaling'
fix sendBufferMap description