diff options
author | Pablo Mazzini <pmazzini@gmail.com> | 2018-11-27 22:15:54 +0000 |
---|---|---|
committer | insomniac <insomniacslk@users.noreply.github.com> | 2018-11-27 22:15:54 +0000 |
commit | 319e92b03a0b85eeaee17398b72ee759b2ccf905 (patch) | |
tree | 5c3427a22d5e293835b6f60f2d9c58187352eb33 /README.md | |
parent | ee4c6d2553989a433e4a13fb130616061558db48 (diff) |
simplify client interface (#181)
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -59,9 +59,9 @@ func main() { // return a non-empty packet list even if there is an error. This is // intended, because the transaction may fail at any point, and we // still want to know what packets were exchanged until then. - // The `nil` argument indicates that we want to use a default Solicit - // packet, instead of specifying a custom one ourselves. - conversation, err := client.Exchange("eth0", nil) + // A default Solicit packet will be used during the "conversation", + // which can be manipulated by using modifiers. + conversation, err := client.Exchange("eth0") // Summary() prints a verbose representation of the exchanged packets. for _, packet := range conversation { |