title: My socket program doesn't print the output
body: <p>Just getting started with socket programming, I have created the below code and expecting to print some byte data, but it isn't doing that.</p>
  
  <pre><code>import socket
  
  def create_socket():
      s = socket.socket(socket.AF_PACKET, socket.SOCK_RAW, socket.ntohl(3))
  
  while True:
      rdata, address = s.recvfrom(65535)
      print(rdata)
  </code></pre>
  
  <p>It just sits and does nothing.</p>
  
  <p>any directions would be appreciated. </p>