func (c *Client) Start() {
	c.State.started.Add(2)

	go func() {
		c.State.started.Done()
		c.w.WriteTo(c.conn)
		c.State.endedW.Done()
		c.Stop()
	}()
	c.State.endedW.Add(1)

	go func() {
		c.State.started.Done()
		c.r.ReadFrom(c.conn)
		c.State.endedR.Done()
		c.Stop()
	}()
	c.State.endedR.Add(1)

	c.State.started.Wait()
}
// Start begins the client goroutines reading and writing packets.
Start begins the client goroutines reading and writing packets.
// Start begins the client goroutines reading and writing packets .
func (c *Client) Start() {
	c.State.started.Add(2)
	go func() {
		c.State.started.Done()
		c.w.WriteTo(c.conn)
		c.State.endedW.Done()
		c.Stop()
	}()
	c.State.endedW.Add(1)
	go func() {
		c.State.started.Done()
		c.r.ReadFrom(c.conn)
		c.State.endedR.Done()
		c.Stop()
	}()
	c.State.endedR.Add(1)
	c.State.started.Wait()
}
func ( c * Client ) Start ( ) { c . State . started . Add ( 2 ) go func ( ) { c . State . started . Done ( ) c . w . WriteTo ( c . conn ) c . State . endedW . Done ( ) c . Stop ( ) } ( ) c . State . endedW . Add ( 1 ) go func ( ) { c . State . started . Done ( ) c . r . ReadFrom ( c . conn ) c . State . endedR . Done ( ) c . Stop ( ) } ( ) c . State . endedR . Add ( 1 ) c . State . started . Wait ( ) }
Start begins the client goroutines reading and writing packets.
Start begins the client goroutines reading and writing packets .