 
 
 var addressName = "google.com"
-printHostIP(addressName)
-printHostIP("reddit.com")
+printHostIP(hostName: addressName)
+printHostIP(hostName: "reddit.com")
 
 var sa = SocketAddress(hostName: addressName)
 p(sa.ip4ToUInt32())

  var sample = "GET / HTTP/1.1\r\nHost: 127.0.0.1:9123\r\nUser-Agent: curl/7.43.0\r\nAccept: */*\r\n\r\n"
  var a = [UInt8](sample.utf8)
  var parser = HeaderParser()
  try parser.parse(a)
  if parser.header.method == "GET" {
    count += 1
  }

  serverSocket.close()
}

var buffer = [UInt8](repeating: 0, count: 1024)

while true {
  if let socket = serverSocket.accept() {
    defer {
      socket.close()
    }
    var n = socket.read(buffer: &buffer, maxBytes: buffer.count)
    let _ = socket.write(string: "Hello World\n")
  }
}
