mirror of
https://github.com/danderson/netboot.git
synced 2025-10-16 10:01:20 +02:00
Make dhcp.Conn also be an io.Closer.
This commit is contained in:
parent
05cf66722e
commit
21d22e747d
@ -14,7 +14,10 @@
|
||||
|
||||
package dhcp
|
||||
|
||||
import "net"
|
||||
import (
|
||||
"io"
|
||||
"net"
|
||||
)
|
||||
|
||||
// TxType describes how a Packet should be sent on the wire.
|
||||
type TxType int
|
||||
@ -42,6 +45,7 @@ const (
|
||||
//
|
||||
// Multiple goroutines may invoke methods on a Conn simultaneously.
|
||||
type Conn interface {
|
||||
io.Closer
|
||||
// RecvDHCP reads a Packet from the connection. It returns the
|
||||
// packet and the interface it was received on, which may be nil
|
||||
// if interface information cannot be obtained.
|
||||
|
Loading…
x
Reference in New Issue
Block a user