Open grossmj opened 9 years ago
Performances could potentially be increased using "zero copy" networking features on Linux (PACKET_RX_RING or PACKET_TX_RING).
Some examples can be found there:
https://github.com/vieites4/rawsockets/blob/master/docs/snippets/packet_mmap.c http://codemonkeytips.blogspot.ca/2011/07/asynchronous-packet-socket-reading-with.html http://yusufonlinux.blogspot.ca/2010/11/data-link-access-and-zero-copy.html
Implementation example: https://github.com/PhiloZhang/PacketMmap
Performances could potentially be increased using "zero copy" networking features on Linux (PACKET_RX_RING or PACKET_TX_RING).
Some examples can be found there:
https://github.com/vieites4/rawsockets/blob/master/docs/snippets/packet_mmap.c http://codemonkeytips.blogspot.ca/2011/07/asynchronous-packet-socket-reading-with.html http://yusufonlinux.blogspot.ca/2010/11/data-link-access-and-zero-copy.html