コード例 #1
0
ファイル: client_funcs.go プロジェクト: mlncn/cothority
func (c *Client) handleServer(s coconet.Conn) error {
	for {
		tsm := &conode.TimeStampMessage{}
		err := s.GetData(tsm)
		if err != nil {
			if err == coconet.ErrNotEstablished {
				continue
			}
			dbg.Lvl3("error getting from connection:", err)
			return err
		}
		c.handleResponse(tsm)
	}
}