Implement a small program that reads /proc/net/tcp every 10 seconds and outputs any new connections.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
259 B

package timer
import (
"fmt"
"time"
//"reflect"
)
func New() {
timer_10s := time.NewTimer(10 * time.Second)
// timer_1m := time.NewTimer(1 * time.Minute)
fmt.Println("Waiting 10 seconds...")
<-timer_10s.C
// for elapsed < ten_seconds {
//}
// for
}