amphp / dns

Async DNS resolution for PHP based on Amp.
https://amphp.org/dns
MIT License
157 stars 32 forks source link

Added hard-coded packet response to allow testing of the decoding. #10

Closed Danack closed 10 years ago

Danack commented 10 years ago

tbh I'm not entirely sure what the behaviour is meant to be but it looks like:

I capture the packet using the commented out function, so I hope it's correct - though it is possible I'm passing in garbage.

Danack commented 10 years ago

Closing this - submitting one with more changes that I did in a branch.