added "Type A" plugs to command parse

"Type C" still missing
change tcp answers lenght from sizeof to strlen
fix reconnect

server went into infinite loop after client disconnected