Implement packet sending in a goroutine