title: Simple raw socket server in C/C++ on Linux
body: <p>I am trying to build an Ethernet network with raw sockets. I cannot use TCP/IP, UDP, or any other protocol. </p>
  
  <p>This is because it will be communicating with very simple hardware that won't have the resources to handle all the different protocol layers. 
  My network will consist of 1 host computer communicating with several pieces of hardware through an Ethernet switch. At this point I basically just want to send simple packets to each piece of hardware and to establish a simple server I can expand on. My system is running Linux and the server needs to be written in C or C++. </p>
  
  <p>I have been trying to find information on how to use raw sockets, but everyone always says not to use them and provides no information. I have a pretty strong programming background but no networking experience. 
  Can anyone provide any information on how to get started or where a relevant tutorial can be found?</p>