boom
This commit is contained in:
@@ -1,3 +1,3 @@
|
|||||||
module github.com/talksik/udp-ping-pong
|
module github.com/talksik/udp-ping-pong
|
||||||
|
|
||||||
go 1.23
|
go 1.21
|
||||||
|
|||||||
+5
-1
@@ -2,6 +2,7 @@ package main
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"log"
|
||||||
"net"
|
"net"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -12,6 +13,10 @@ func main() {
|
|||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
go func() {
|
||||||
|
log.Println("SERVER | listening on port 5000")
|
||||||
|
}()
|
||||||
|
|
||||||
for {
|
for {
|
||||||
// read
|
// read
|
||||||
buf := make([]byte, 512)
|
buf := make([]byte, 512)
|
||||||
@@ -29,5 +34,4 @@ func main() {
|
|||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user