Lower-level layers than those sockets address fall pretty much in the domain of device driver programming.
gnosis.cx