socketget.go: time.Duration and package types. (To do: same for socketset.go)