In computer networking, a raw socket is an internet socket that allows direct sending and receiving of Internet Protocol packets without any protocol-specific transport layer formatting. In standard sockets, the payload is automatically encapsulated according to the chosen transport layer protocol (e.g. TCP, UDP), and the socket-user is unaware of the existence of protocol headers that are broadcast with the payload. When reading from a raw socket, the headers are usually included.