func handleConnection(conn net.Conn, stop chan struct{}, s *sdk.SDK) {
	log.Printf("Client %s connected", conn.RemoteAddr().String())
	scanner := bufio.NewScanner(conn)
	for {
		if ok := scanner.Scan(); !ok {
			log.Printf("Client %s disconnected", conn.RemoteAddr().String())
			return
		}
		handleCommand(conn, scanner.Text(), stop, s)
	}
}
// handleConnection services a single tcp connection to the server
handleConnection services a single tcp connection to the server
// handleConnection services a single tcp connection to the server
func handleConnection(conn net.Conn, stop chan struct{}, s *sdk.SDK) {
	log.Printf("Client %s connected", conn.RemoteAddr().String())
	scanner := bufio.NewScanner(conn)
	for {
		if ok := scanner.Scan(); !ok {
			log.Printf("Client %s disconnected", conn.RemoteAddr().String())
			return
		}
		handleCommand(conn, scanner.Text(), stop, s)
	}
}
func handleConnection ( conn net . Conn , stop chan struct { } , s * sdk . SDK ) { log . Printf ( " " , conn . RemoteAddr ( ) . String ( ) ) scanner := bufio . NewScanner ( conn ) for { if ok := scanner . Scan ( ) ; ! ok { log . Printf ( " " , conn . RemoteAddr ( ) . String ( ) ) return } handleCommand ( conn , scanner . Text ( ) , stop , s ) } }
handleConnection services a single tcp connection to the server
handleConnection services a single tcp connection to the server