obliv-c
obliv-c copied to clipboard
Oblivious transfer Communication Traffic
Can I call some function that can report the total traffic sent and received during the protocol execution?
There is a way to measure the total number of bytes sent at any given point in time. You can use that before and after any piece of code to figure out the traffic volume between those two points. Two steps:
- In your .c file, replace
protocolConnectTcp2PwithprotocolConnectTcp2PProfiled. This will enable the counting logic. - Use
tcp2PBytesSentto get the number of bytes sent so far. Use from both ends to get both directions.