TCP/UDP sockets and hardware sleep