mirror of
https://github.com/soypat/lneto.git
synced 2026-08-10 18:03:43 +00:00
rewrite ControlBlock.Open to only open passive connections; now use Send for active connections
This commit is contained in:
@@ -70,11 +70,15 @@ func main() {
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
log.Println("success receiving packet")
|
||||
n, err := lStack.HandleEth(buf)
|
||||
if err != nil {
|
||||
log.Fatal(n, err)
|
||||
} else if n > 0 {
|
||||
log.Println("success sending packet")
|
||||
} else {
|
||||
log.Println("no packet sent")
|
||||
}
|
||||
log.Println("success receiving packet")
|
||||
}
|
||||
|
||||
type Handler interface {
|
||||
|
||||
Reference in New Issue
Block a user