For a project, I'm looking to simulate a communication protocol. I plan to add in my own simulated packet loss and what not. However, I'd like to build this simulation on top of a UDP socket. So that the UDP socket will actually be the one sending and receiving the files, and then I can just simulate my own packet loss and protocol on top of that. What I'm not sure how to do is take an example (video) file and break it down into packets, which I then send over the UDP socket, then recombine them afterward to get the video back out. Can someone walk me through what I need to do that? Possibly an example? Thanks!
Asked
Active
Viewed 2,406 times
1 Answers
2
'Boost provides facilities to create both TCP & UDP Sockets http://www.boost.org/doc/libs/1_52_0/doc/html/boost_asio/tutorial/tutdaytime4.html provides a short ltutorial Which implements a Synchronous UDP connection, plus boost provides much more besides that may be Of Use. apologies for the Short answer but I'm on a phone currently I realize That the example is for an async package, but this specific example is for a synchronous version

Caribou
- 2,070
- 13
- 29